13 min read
SwiftUI sheets and alerts in production: presentation state without navigation soup
How to model sheets, alerts, confirmation dialogs, and full-screen covers so presentation state stays predictable across platforms and deep links.
Read the essayEnteror double click opens it
Topics
In this essay
- 1. Separate navigation from presentation
- 2. Replace Boolean piles with one presentation value
- 3. Use item-driven sheets when identity matters
- 4. Keep alerts small and product-specific
- 5. Use confirmation dialogs for choices, not data loss theatre
- 6. Model dismissal as an operation
- 7. Decide which presentation state survives restoration
- 8. Respect platform differences without forking the model
- 9. Keep presentation out of domain services
- 10. Test presentation as state, not tap choreography
- 11. The production baseline