SwiftUI Reference for Real Developers
API references, how-to guides, troubleshooting, UI patterns, and comparisons — with runnable code on every page.
Six ways into SwiftUI
Reference
Exact API lookups with runnable code and pitfalls.
Guides
How to get common SwiftUI tasks done, step by step.
Patterns
Copy-paste UI components and full screens.
Fix
Broken behavior, root causes, and minimal fixes.
Compare
X vs Y decisions with side-by-side code.
iOS Versions
What changed in SwiftUI for each iOS release.
Featured UI patterns
SwiftUI Custom Tab Bar with Badge
A custom tab bar with animated badge indicators for unread notifications or messages.
SwiftUI Login Screen
A reusable login screen with email and password fields, and a login button.
SwiftUI Settings Screen
A customizable grouped list settings screen with toggle switches and action buttons.
Popular how-to guides
How to Navigate Between Views in SwiftUI
Learn how to navigate between views in SwiftUI using NavigationLink and NavigationStack.
How to Pass Data Between Views in SwiftUI
Learn how to pass data between views in SwiftUI using bindings, environment objects, and more.
How to Detect Dark Mode in SwiftUI
Learn how to detect and respond to dark mode in SwiftUI using the color scheme environment value.