Skip to content

v2.0.0 - Support for Nested Routing and API Improvements

Compare
Choose a tag to compare
@obvios obvios released this 26 Feb 16:32
· 6 commits to main since this release

📌 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

  1. 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.
  1. Improved Router API for Programmatic Navigation
  • Introduced explicit routeTo(_:via:) for more control over navigation behavior.
  • Separate dismissChild() and dismissSelf() methods for finer-grained dismissal.
  • pop() now properly removes views from the navigation stack.
  1. 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")
]