URLNavigator icon indicating copy to clipboard operation
URLNavigator copied to clipboard

How to get fromViewController from Context

Open thepinyo opened this issue 6 years ago • 1 comments

let navigatorContext: [AnyHashable: Any] = ["fromViewController": self] navigator.open(link, context: navigatorContext)

how to get navigatorContext ?

thepinyo avatar Apr 27 '18 02:04 thepinyo

Try:

navigator.handle("myapp://foo/bar") { url, values, context in
  let fromViewController = context["fromViewController"]
}

devxoul avatar Apr 27 '18 08:04 devxoul