Skip to content

Commit

Permalink
Merge pull request #56 from GSM-MSG/hotfix/navigation_twice_delegation
Browse files Browse the repository at this point in the history
🔀 :: Navigation Delegate 중복 제거
  • Loading branch information
baekteun authored May 10, 2023
2 parents 5869537 + 0a4e958 commit e4ccd5d
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,3 @@ public extension View {
.modifier(SMSBackButtonModifier(dismiss: dismiss, willDismiss: willDismiss))
}
}

extension UINavigationController: ObservableObject, UIGestureRecognizerDelegate {
override open func viewDidLoad() {
super.viewDidLoad()
interactivePopGestureRecognizer?.delegate = self
}

public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
return viewControllers.count > 1
}
}

0 comments on commit e4ccd5d

Please sign in to comment.