100 Days of SwiftUI

Day 72

2026-07-25

Project 14, part 5

Finishing the basic app

Introducing MVVM into your SwiftUI project

MVVM → Model View View-Model. In this case “separating logic from layout”

Making an extension on ContentView with an @Observable class ViewModel. What goes in it? It depends on your own taste, ideas, and so on… could be just the “important bits” whatever that means, or “everything” or something in between

SwiftUI is great for showing data. ViewModel is the place where manipulation of data occurs.

samoyed sketchsamoyed sketch

Locking our UI behind Face ID

This is a topic that will require always looking it up.