-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Description
case root
}
final class CommunitiesCoordinator: NavigationCoordinator<CommunitiesRoute> {
init() {
super.init(initialRoute: .root)
delegate = RootNavigationControllerDelegateWrapper()
}
override func prepareTransition(for route: CommunitiesRoute) -> NavigationTransition {
switch route {
case .root:
let rootVc = CommunitiesViewController()
return .push(rootVc)
}
}
}
final class RootNavigationControllerDelegateWrapper: NSObject,
UINavigationControllerDelegate {
func navigationController(_ navigationController: UINavigationController,
willShow viewController: UIViewController,
animated: Bool) {
print("π Will show: \(type(of: viewController))")
}
func navigationController(_ navigationController: UINavigationController,
didShow viewController: UIViewController,
animated: Bool) {
print("β
Did show: \(type(of: viewController))")
}
}
I have simple routing like that, but look like delegate func not to be call, could you guys help me check on it?
Metadata
Metadata
Assignees
Labels
No labels