Skip to content
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

Global fallback router #64

Closed
iShawnWang opened this issue Aug 15, 2017 · 2 comments
Closed

Global fallback router #64

iShawnWang opened this issue Aug 15, 2017 · 2 comments

Comments

@iShawnWang
Copy link
Contributor

  • I want a fallback router such as 'shceme://*', and when all the others can't match, this handler be called
  • so that i can present a viewcontroller to show something like Comming Soon ~ and do analytics, any build in support for this ?

:D

@devxoul
Copy link
Owner

devxoul commented Aug 17, 2017

Could you test with the code below? I think this might work but not 100% sure.

Navigator.map("myapp://vc1", ViewController1.self)
Navigator.map("myapp://vc2", ViewController2.self)
Navigator.map("myapp://<path:_>", ComingSoonViewController.self) // fallback

@iShawnWang
Copy link
Contributor Author

It works like a charm, and i make a PR #65

devxoul added a commit that referenced this issue Aug 18, 2017
Add example for fallback navigator for issues #64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants