Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8200e0d49f | |||
| 5bb2f86b0a | |||
| c591059fbe |
@@ -294,6 +294,12 @@ open class SideMenuNavigationController: UINavigationController {
|
||||
}
|
||||
|
||||
override open func pushViewController(_ viewController: UIViewController, animated: Bool) {
|
||||
guard viewControllers.count > 0 else {
|
||||
// NOTE: pushViewController is called by init(rootViewController: UIViewController)
|
||||
// so we must perform the normal super method in this case
|
||||
return super.pushViewController(viewController, animated: animated)
|
||||
}
|
||||
|
||||
var alongsideTransition: (() -> Void)? = nil
|
||||
if dismissOnPush {
|
||||
alongsideTransition = { [weak self] in
|
||||
|
||||
@@ -40,12 +40,6 @@ internal final class SideMenuPushCoordinator: Coordinator {
|
||||
func start() {
|
||||
guard let fromNavigationController = config.fromViewController as? UINavigationController else { return }
|
||||
let toViewController = config.toViewController
|
||||
guard fromNavigationController.viewControllers.count > 0 else {
|
||||
// NOTE: pushViewController is called by init(rootViewController: UIViewController)
|
||||
// so we must perform the normal super method in this case
|
||||
return fromNavigationController.pushViewController(toViewController, animated: config.animated)
|
||||
}
|
||||
|
||||
let presentingViewController = fromNavigationController.presentingViewController
|
||||
let splitViewController = presentingViewController as? UISplitViewController
|
||||
let tabBarController = presentingViewController as? UITabBarController
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "SideMenu"
|
||||
s.version = "6.2.6"
|
||||
s.version = "6.2.7"
|
||||
s.summary = "Simple side menu control for iOS in Swift inspired by Facebook. Right and Left sides. No coding required."
|
||||
|
||||
# This description is used to generate tags and improve search results.
|
||||
|
||||
Reference in New Issue
Block a user