|
|
@ -14,6 +14,7 @@ class SwipeNavigationController: UINavigationController { |
|
|
|
|
|
|
|
override init(rootViewController: UIViewController) { |
|
|
|
super.init(rootViewController: rootViewController) |
|
|
|
delegate = self |
|
|
|
} |
|
|
|
|
|
|
|
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { |
|
|
@ -57,8 +58,11 @@ class SwipeNavigationController: UINavigationController { |
|
|
|
// MARK: - UINavigationControllerDelegate |
|
|
|
|
|
|
|
extension SwipeNavigationController: UINavigationControllerDelegate { |
|
|
|
|
|
|
|
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) { |
|
|
|
func navigationController( |
|
|
|
_ navigationController: UINavigationController, |
|
|
|
didShow viewController: UIViewController, |
|
|
|
animated: Bool |
|
|
|
) { |
|
|
|
guard let swipeNavigationController = navigationController as? SwipeNavigationController else { return } |
|
|
|
|
|
|
|
swipeNavigationController.duringPushAnimation = false |
|
|
|