-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Check if route is valid/mapped #70
Comments
You may want to use: let isMapped = Navigator.viewController(for: "foo://bar") != nil |
I wouldn't recommend this method to check if a route is mapped for 3 reasons:
|
When do you need this feature? |
Ideally with URLNavigator 2 which I hope is for this year :) |
Oh, I mean 'why do you need?' |
Example:
If you have other ways, let me know. |
Oh I see. Actually current version of URLNavigator is not really test-friendly. It would be great if it can be included in URLNavigator 2. |
I would gladly contribute to URLNavigator2 to include Unit Tests |
This is implemented in URLNavigator 2. You may use view controller factory to achieve this. Thanks! |
It would be nice to test a route "foo://bar" so we know it is has been mapped:
Maybe?
The text was updated successfully, but these errors were encountered: