What problem does it solve?
This Skill provides a comprehensive guide and best practices for implementing various navigation patterns in SwiftUI applications, ensuring a smooth and intuitive user experience across different platforms.
Core Features & Use Cases
- Hierarchical Navigation: Implement drill-down flows using
NavigationStack.
- Tab-Based Navigation: Structure apps with multiple distinct sections using
TabView.
- Modal Presentations: Manage sheets and full-screen covers for secondary tasks and immersive experiences.
- Type-Safe Routing: Ensure robust and maintainable navigation with type-safe destinations.
- Platform Adaptations: Understand and implement platform-specific navigation patterns for iPadOS (e.g.,
NavigationSplitView).
- Use Case: When building a new feature that requires users to navigate from a list of items to a detail view, and then potentially to an editing screen, this Skill guides you on using
NavigationStack and navigationDestination effectively.
Quick Start
Use the navigation skill to implement a tab view with three main sections: Home, Search, and Profile.