Tagged with swiftui

Browse all tags

Complex Forms Should Not Make Your ViewModel the Use Case

Architect complex SwiftUI forms with drafts, validators, mappers, form operations, and use cases without making the ViewModel the whole feature.

AI Coding Still Needs Architecture

AI coding tools make architecture more important, not less important. Learn why I give AI agents an ARCHITECTURE.md file before asking them to write code.

Selection Is Not Navigation in SwiftUI

Learn how to model list selection in SwiftUI without leaking navigation, domain identity, or behavior into the wrong place.

Unidirectional Data Flow in SwiftUI Apps

Learn unidirectional data flow in SwiftUI with view intents, use case outputs, ViewModel state, and flow-owned navigation.

Architecture Decisions I Would Avoid in a New SwiftUI App

Learn architecture decisions to avoid in new SwiftUI apps, from global state to over-abstracted networking and hidden dependencies.

When MVVM Goes Wrong in SwiftUI

Learn common SwiftUI MVVM mistakes and how to keep ViewModels focused, testable, and easy to compose.

The Composition Root in SwiftUI Apps

Learn the composition root in pure SwiftUI apps using @main App, factories, observable object ownership, NavigationStack, previews, and environment tradeoffs.

Clean MVVM in SwiftUI: Use Cases, ViewModels, and Composition Root

Learn clean MVVM in SwiftUI using use cases, view models, adapters, and composition root wiring.