-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT][#7] 출석코드 입력 화면 navigationBar 설정
- navigationBar appearance 설정 - backButton, titleView 설정 - swipeback 동작하도록 UINavigationController+Extension 추가
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// UINavigationController+Extension.swift | ||
// momoIOS | ||
// | ||
// Created by 임수현 on 2023/02/11. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UINavigationController: ObservableObject, UIGestureRecognizerDelegate { | ||
override open func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
// backButton을 임의로 변경하면 swipe back 동작이 되지 않기 떄문에 gestureRecognizer를 설정하여 동작하도록 함. | ||
interactivePopGestureRecognizer?.delegate = self | ||
} | ||
|
||
public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { | ||
return viewControllers.count > 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters