URLNavigator provides an elegant way to navigate through view controllers by URLs. URL patterns can be mapped by using URLNavigator.register(_:_:) function. URLNavigator can be used for mapping URL patterns with 2 kinds of types: URLNavigable and URLOpenHandler. URLNavigable is a type that defines a custom initializer and URLOpenHandler is a closure that can be executed. Both an initializer and a closure receive URL and placeholder values. URL patterns can contain placeholders. Placeholders will be replaced with matching values from URLs. Placeholders can have types: string(default), int, float, and path. URLNavigator allows mapping view controllers and URL open handlers with URL patterns. Provide the from parameter to push() to specify the navigation controller to which the new view controller will be pushed.
Features
- Understand URL Patterns
- Map View Controllers and URL Open Handlers
- Push and present URLs
- Open URLs
- URLNavigator can push and present view controllers and execute closures with URLs
- URLNavigator officially supports CocoaPods only
- Implement AppDelegate Launch Option URL