Skip to content

Commit

Permalink
[Feat] TeamSparker#159 - 네비바 hidden일때 swipeBackGesture
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsubinn committed Jan 21, 2022
1 parent bdb53ef commit d35c5d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class AuthTimerVC: UIViewController {
super.viewWillAppear(animated)

navigationController?.isNavigationBarHidden = true
navigationController?.interactivePopGestureRecognizer?.delegate = nil
}

// MARK: - Methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "어떤 습관방을 만들건가요?"
Expand Down Expand Up @@ -213,5 +207,4 @@ extension CreateRoomVC: UITextFieldDelegate {
disableButton()
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d35c5d6

Please sign in to comment.