From 088f93249125713e060b2feaa140516b1f89381c Mon Sep 17 00:00:00 2001 From: Selim Mustafaev Date: Sun, 14 Jun 2020 21:27:11 +0300 Subject: [PATCH] Fixed bug with hidden navigation bar --- AutoCat.xcodeproj/project.pbxproj | 4 ++-- .../xcdebugger/Breakpoints_v2.xcbkptlist | 16 ---------------- AutoCat/Base.lproj/Main.storyboard | 10 +++++----- AutoCat/Controllers/MainSplitController.swift | 1 + AutoCat/Controllers/ReportController.swift | 6 +----- 5 files changed, 9 insertions(+), 28 deletions(-) diff --git a/AutoCat.xcodeproj/project.pbxproj b/AutoCat.xcodeproj/project.pbxproj index fb33cdd..8be4e89 100644 --- a/AutoCat.xcodeproj/project.pbxproj +++ b/AutoCat.xcodeproj/project.pbxproj @@ -619,7 +619,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 13; + CURRENT_PROJECT_VERSION = 14; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; @@ -641,7 +641,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 13; + CURRENT_PROJECT_VERSION = 14; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; diff --git a/AutoCat.xcodeproj/xcuserdata/selim.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/AutoCat.xcodeproj/xcuserdata/selim.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index ca176d8..4faad41 100644 --- a/AutoCat.xcodeproj/xcuserdata/selim.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/AutoCat.xcodeproj/xcuserdata/selim.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -40,21 +40,5 @@ landmarkType = "7"> - - - - diff --git a/AutoCat/Base.lproj/Main.storyboard b/AutoCat/Base.lproj/Main.storyboard index 277d826..932f211 100644 --- a/AutoCat/Base.lproj/Main.storyboard +++ b/AutoCat/Base.lproj/Main.storyboard @@ -165,7 +165,7 @@ - + @@ -223,14 +223,14 @@ - + - + - + diff --git a/AutoCat/Controllers/MainSplitController.swift b/AutoCat/Controllers/MainSplitController.swift index 0297003..0cf1b20 100644 --- a/AutoCat/Controllers/MainSplitController.swift +++ b/AutoCat/Controllers/MainSplitController.swift @@ -58,6 +58,7 @@ class MainSplitController: UISplitViewController, UISplitViewControllerDelegate if let tabController = primaryViewController as? UITabBarController { let selectedNavController = tabController.selectedViewController as? UINavigationController detail.hidesBottomBarWhenPushed = true + selectedNavController?.setNavigationBarHidden(false, animated: false) selectedNavController?.pushViewController(detail, animated: false) return true } diff --git a/AutoCat/Controllers/ReportController.swift b/AutoCat/Controllers/ReportController.swift index f3d7114..3b4abae 100644 --- a/AutoCat/Controllers/ReportController.swift +++ b/AutoCat/Controllers/ReportController.swift @@ -118,16 +118,12 @@ class ReportController: UIViewController, UICollectionViewDataSource, UICollecti super.viewWillAppear(animated) guard let ad = UIApplication.shared.delegate as? AppDelegate else { return } - self.navigationController?.setNavigationBarHidden(self.vehicle == nil, animated: false) + self.navigationController?.setNavigationBarHidden(self.vehicle == nil, animated: animated) if ad.quickAction == .check { self.dismiss(animated: false, completion: nil) } } - - override func viewDidAppear(_ animated: Bool) { - super.viewDidAppear(animated) - } // MARK: - UICollectionViewDataSource