Releases: obvios/Routing
Releases · obvios/Routing
API improvements and documentation
v2.0.1 - Fix unit tests
Updates failing unit tests.
v2.0.0 - Support for Nested Routing and API Improvements
📌 GitHub Release Notes for v2.0.0
What's New in v2.0.0
This release introduces nested routing support, allowing RoutingView to be embedded inside modal presentations while maintaining independent navigation stacks. Additionally, several API refinements improve flexibility, type safety, and deep linking integration.
Key Features & Improvements
- Nested Routing Support (Major Feature)
- RoutingView now supports nested navigation stacks within modals (sheet and fullScreenCover).
- Each presented view gets its own isolated router, enabling deeper navigation within modals.
- Improved
Router
API for Programmatic Navigation
- Introduced explicit
routeTo(_:via:)
for more control over navigation behavior. - Separate
dismissChild()
anddismissSelf()
methods for finer-grained dismissal. pop()
now properly removes views from the navigation stack.
- Enhanced Deep Linking Support
onDeepLink(using:)
now seamlessly integrates with RoutingView.- The router automatically resolves deep links and dismisses active modals before navigating.
Installation & Upgrade
To update to v2.0.0, ensure you are using Swift Package Manager (SPM). Then update the package in Xcode via "File > Swift Packages > Update to Latest Package Versions."
For manual installation, add the following to your Package.swift:
dependencies: [
.package(url: "https://github.com/obvios/Routing.git", from: "2.0.0")
]