Overview of Navigator
mainNavigator is an advanced navigation layer for SwiftUI built on top of NavigationStack. It is designed to provide more than simple push/pop functionality, offering features for coordination patterns, modular application support, and deep linking.
Key capabilities include:
- Simple view linking and presentation.
- Coordination patterns with separation of concerns.
- Cross-module navigation for modular apps.
- Deep linking and internal navigation via
navigation send. - Navigation checkpoints for returning to specific tree locations or retrieving callback values.
- Support for both Declarative and Imperative navigation.
- Navigation state restoration.
- Event logging and debugging.
- No manual
navigationDestinationregistration required.