How to sketch an iOS screen that follows HIG
Quando usar: You need a first-pass layout for a new screen and don't want to re-learn HIG from scratch.
Fluxo
-
Describe the screenSketch a Settings > Notifications screen for iPhone — standard iOS 18 patterns.✓ Copiado→ Grouped List, right-detail rows, correct section headers — HIG citations inline
-
Produce the SwiftUIGenerate the SwiftUI code using Form/List and system colors.✓ Copiado→ Idiomatic SwiftUI with .listStyle(.insetGrouped), Toggle, NavigationLink
-
Check dark modeAdapt for dark mode — confirm you're using .primary / .secondary, not hardcoded hex.✓ Copiado→ Semantic-color confirmation
Resultado: A screen that feels native on the first preview and won't get rejected in review.
Armadilhas
- Custom styling that fights the system — Ask Claude 'what's the standard HIG way?' before any custom styling