URLNavigator
URLNavigator copied to clipboard
How to get fromViewController from Context
let navigatorContext: [AnyHashable: Any] = ["fromViewController": self] navigator.open(link, context: navigatorContext)
how to get navigatorContext ?
Try:
navigator.handle("myapp://foo/bar") { url, values, context in
let fromViewController = context["fromViewController"]
}