added fix code
This commit is contained in:
parent
39fd541f56
commit
5a6c730082
@ -68,9 +68,9 @@ open class NavigationOperation: MVMCoreOperation, UINavigationControllerDelegate
|
|||||||
let index = navigationController.getIndexOfViewController(with: pageType) else {
|
let index = navigationController.getIndexOfViewController(with: pageType) else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
var viewControllers = navigationController.viewControllers[...index]
|
var viewControllers = Array(navigationController.viewControllers[...index])
|
||||||
viewControllers[index] = viewController
|
viewControllers[index] = viewController
|
||||||
set(viewControllers: Array(viewControllers), navigationController: navigationController, animated: animated)
|
set(viewControllers: viewControllers, navigationController: navigationController, animated: animated)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,9 +119,7 @@ open class NavigationOperation: MVMCoreOperation, UINavigationControllerDelegate
|
|||||||
toNavigationControllerViewControllers = viewControllers
|
toNavigationControllerViewControllers = viewControllers
|
||||||
NavigationHandler.shared().onNavigation.send((.willNavigate, self))
|
NavigationHandler.shared().onNavigation.send((.willNavigate, self))
|
||||||
guard !checkAndHandleForCancellation() else { return }
|
guard !checkAndHandleForCancellation() else { return }
|
||||||
if viewControllers.count > 0 {
|
navigationController.setViewControllers(viewControllers, animated: animated)
|
||||||
navigationController.setViewControllers(viewControllers, animated: animated)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Has the navigation controller pop.
|
/** Has the navigation controller pop.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user