[ad_1]
In my SwiftUI app I’ve set in all my views .navigationBarBackButtonHidden(true) to have at all times a customized Again Button, so the iOS traditional swipe to return has been disabled in every single place, however I really need it solely in particular views.
I re enabled it utilizing this code:
extension UINavigationController: UIGestureRecognizerDelegate {
override open func viewDidLoad() {
tremendous.viewDidLoad()
interactivePopGestureRecognizer?.delegate = self
}
public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
return viewControllers.depend > 1
}
}
It really works however sadly it re allows swipe to return in all the mission, what ought to I do?
[ad_2]
