From d35c5d613e5ed73a4fc6485fb274a55512bf0baa Mon Sep 17 00:00:00 2001 From: yangsubinn Date: Fri, 21 Jan 2022 14:59:12 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20#159=20-=20=EB=84=A4=EB=B9=84=EB=B0=94?= =?UTF-8?q?=20hidden=EC=9D=BC=EB=95=8C=20swipeBackGesture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Auth/AuthTimer/AuthTimerVC.swift | 1 + .../ViewControllers/Create/CreateRoomVC.swift | 17 +++++------------ .../ViewControllers/HabitRoom/HabitRoomVC.swift | 1 + 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/Spark-iOS/Spark-iOS/Source/ViewControllers/Auth/AuthTimer/AuthTimerVC.swift b/Spark-iOS/Spark-iOS/Source/ViewControllers/Auth/AuthTimer/AuthTimerVC.swift index 94b8042c..ea5f17f6 100644 --- a/Spark-iOS/Spark-iOS/Source/ViewControllers/Auth/AuthTimer/AuthTimerVC.swift +++ b/Spark-iOS/Spark-iOS/Source/ViewControllers/Auth/AuthTimer/AuthTimerVC.swift @@ -48,6 +48,7 @@ class AuthTimerVC: UIViewController { super.viewWillAppear(animated) navigationController?.isNavigationBarHidden = true + navigationController?.interactivePopGestureRecognizer?.delegate = nil } // MARK: - Methods diff --git a/Spark-iOS/Spark-iOS/Source/ViewControllers/Create/CreateRoomVC.swift b/Spark-iOS/Spark-iOS/Source/ViewControllers/Create/CreateRoomVC.swift index 647cf5a5..bbfe388b 100644 --- a/Spark-iOS/Spark-iOS/Source/ViewControllers/Create/CreateRoomVC.swift +++ b/Spark-iOS/Spark-iOS/Source/ViewControllers/Create/CreateRoomVC.swift @@ -25,28 +25,22 @@ class CreateRoomVC: UIViewController { // MARK: - View Life Cycles - override func viewWillAppear(_ animated: Bool) { - navigationController?.isNavigationBarHidden = true - } - override func viewDidLoad() { super.viewDidLoad() - setUI() setLayout() setNotification() setAddTarget() } + override func viewWillAppear(_ animated: Bool) { + navigationController?.isNavigationBarHidden = true + navigationController?.interactivePopGestureRecognizer?.delegate = nil + } + // MARK: - Methods private func setUI() { -// navigationController?.initWithLeftButtonTitle(title: "aa", -// tintColor: .sparkBlack, -// backgroundColor: .white, -// image: UIImage(named: "icQuit"), -// selector: #selector(touchCloseButton)) - closeButton.setImage(UIImage(named: "icQuit"), for: .normal) titleLabel.text = "어떤 습관방을 만들건가요?" @@ -213,5 +207,4 @@ extension CreateRoomVC: UITextFieldDelegate { disableButton() } } - } diff --git a/Spark-iOS/Spark-iOS/Source/ViewControllers/HabitRoom/HabitRoomVC.swift b/Spark-iOS/Spark-iOS/Source/ViewControllers/HabitRoom/HabitRoomVC.swift index fbe07bb1..29cf6a65 100644 --- a/Spark-iOS/Spark-iOS/Source/ViewControllers/HabitRoom/HabitRoomVC.swift +++ b/Spark-iOS/Spark-iOS/Source/ViewControllers/HabitRoom/HabitRoomVC.swift @@ -96,6 +96,7 @@ class HabitRoomVC: UIViewController { extension HabitRoomVC { private func setUI() { navigationController?.isNavigationBarHidden = true + navigationController?.interactivePopGestureRecognizer?.delegate = nil tabBarController?.tabBar.isHidden = true NotificationCenter.default.post(name: .disappearFloatingButton, object: nil)