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
Does it work with Navigation Controller? #3
Comments
@AnnieNinaJoyceV you're welcome! This control wasn't designed to use within |
@jauzee I got it working by Tweaking
|
@AnnieNinaJoyceV, sorry for the delay. You did it in very complex way. We'll look on that. |
@jauzee No problem, it works for me right now. I will wait for your solution to this. |
@AnnieNinaJoyceV fixed this issue in Actually we'll just check if there is an UINavigationContoller and if so we'll iterate over |
@AnnieNinaJoyceV code but formatted: fileprivate func root(from context: UIViewControllerContextTransitioning) -> ElongationViewController {
guard let c = context.viewController(forKey: rootKey) else {
return context.viewController(forKey: rootKey) as? ElongationViewController ?? ElongationViewController(nibName: nil, bundle: nil)
}
if (c.isKind(of: UINavigationController.self)) {
guard let nv = c as? UINavigationController else {
return context.viewController(forKey: rootKey) as? ElongationViewController ?? ElongationViewController(nibName: nil, bundle: nil)
}
let v = nv.topViewController
return v as? ElongationViewController ?? ElongationViewController(nibName: nil, bundle: nil)
}
return context.viewController(forKey: rootKey) as? ElongationViewController ?? ElongationViewController(nibName: nil, bundle: nil)
} |
how to show navigation bar on ElongationDetailViewController? |
I tried adding Navigation Controller to Demo project and the detail view transition doesn't seem to be happening.
And thanks for this wonderful work :)
The text was updated successfully, but these errors were encountered: