Compare commits

..

3 Commits

Author SHA1 Message Date
jonkykong 8200e0d49f correction 2019-09-06 00:09:05 -07:00
jonkykong 5bb2f86b0a Updated podspec 2019-09-06 00:05:52 -07:00
jonkykong c591059fbe Crash fix 2019-09-06 00:05:39 -07:00
3 changed files with 7 additions and 7 deletions
@@ -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
View File
@@ -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.