You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Thanks for making this handy library. I've noticed that on modern iOS versions the swipe back functionality is broken despite the fact that an old fix is in place. Luckily, I found a solution by implementing the following extension.
Not sure if anyone is using this given the lack of updates, but I got it working doing this
.simultaneousGesture(
DragGesture()
.onEnded { value in
// Detect swipe from the left edge for back navigation
if value.translation.width > 100 && value.startLocation.x < 20 {
presentationMode.wrappedValue.dismiss()
}
}
)
Hello. Thanks for making this handy library. I've noticed that on modern iOS versions the swipe back functionality is broken despite the fact that an old fix is in place. Luckily, I found a solution by implementing the following extension.
That's it!
View+hideNavigationBarWithoutLosingSwipeBack.swift
andView+hideNavigationBarWithoutLosingSwipeBack.swift
are no longer required using this method.If you wish I could open a pull request. Regardless I hope this may be useful to someone in the future.
The text was updated successfully, but these errors were encountered: