You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening the app from a deeplink that references a viewcontroller that is 2, 3.. views deep in a UINavigationController stack, how do you build up the stack? In the included repo example if you do a cold start from safari using navigator://user/devxoul url, the user can never get back to the user list.
The text was updated successfully, but these errors were encountered:
@Sully73, you should map both URLNavigable and URLOpenHandler to navigator://user/<username>. Use open() in cold-start to construct navigation stack and use push() or present() in navigating between view controllers.
Navigator.map("navigator://user/<username>",UserViewController.self)Navigator.map("navigator://user/<username>"){ url, values in
gurad letuserViewController=Navigator.viewController(for: url)as?UserViewControllerelse{return false
}constructNavigationStack(with: userViewController)// your custom function}
func application(
_ application:UIApplication,
didFinishLaunchingWithOptions launchOptions:[UIApplicationLaunchOptionsKey:Any]?)->Bool{
if let url =launchOptions?[.url]as?URL{Navigator.open(url)// use `open()`}return true
}
When opening the app from a deeplink that references a viewcontroller that is 2, 3.. views deep in a UINavigationController stack, how do you build up the stack? In the included repo example if you do a cold start from safari using
navigator://user/devxoul
url, the user can never get back to the user list.The text was updated successfully, but these errors were encountered: