Skip to content

Commit

Permalink
fix: resolve bug in UINavigation on iOS 17
Browse files Browse the repository at this point in the history
  • Loading branch information
interactord committed Oct 24, 2024
1 parent 808471e commit f8b8218
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import UIKit

/// - Note: iOS17 Bug
/// - seealso: https://github.com/forXifLess/LinkNavigator/issues/46
///
///
extension UINavigationController: ObservableObject, UIGestureRecognizerDelegate {

// MARK: Open

override open func viewDidLoad() {
super.viewDidLoad()
interactivePopGestureRecognizer?.delegate = self
navigationBar.isHidden = true
}

// MARK: Public

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

0 comments on commit f8b8218

Please sign in to comment.