Build a settings screen the right way (iOS 17+)
언제 쓸까: You want a Settings screen that's actually idiomatic for iOS 17+.
사전 조건
- Server/skill installed and authenticated — See repo README
흐름
-
PlanUsing the SwiftUI skill, design a Settings view with sections: Account, Notifications, About. Use @Observable for the view model.✓ 복사됨→ View hierarchy + ViewModel sketch
-
CodeWrite the full file with toggles, NavigationLink to subpages, and a confirmation dialog for sign-out.✓ 복사됨→ Compiles on Xcode 15+
결과: Idiomatic SwiftUI you don't have to rewrite next year.
함정
- Don't mix @StateObject with @Observable — Don't mix @StateObject with @Observable — the skill enforces one or the other; follow it.