Can not get userinfo from url.
imphila opened this issue · comments
philia commented
if use performURL it work well. but if use perform method it does not work.
let url = "abc://bvc/a?title=1"
// ZIKAnyViewRouter.performURL(url, path: ZIKViewRoutePath.push(from: self))
let b = ZIKAnyViewRouter.router(forURL: url)
b?.perform(ZIKViewRoutePath.push(from: self), configuring: { (config) in
print("config:\(config.userInfo)")
// config.addUserInfo(<#T##userInfo: [String : Any]##[String : Any]#>)
config.prepareDestination = { destination in
if let destination = destination as? UIViewController{
destination.modalPresentationStyle = .overFullScreen
}
}
})
philia commented
Should I add userinfo manually.
Zuik commented
URL router is not compatible to performPath:configuring:
now. I will implement it later.
You can read performURL:path:completion:
in ZIKViewRouter+URLRouter.m
, and implement performURL:path: configuring:
by yourself.
philia commented
OK. got that. Thank you