Disable InteractivePopGestureRecognizer for specific page #22369
Replies: 3 comments 4 replies
-
|
To disable the swipe back gesture for iOS on a specific page, you can try the following approach. Hope it helps ! |
Beta Was this translation helpful? Give feedback.
-
|
Here is a method that allows you to keep all your iOS code in your iOS project: |
Beta Was this translation helpful? Give feedback.
-
|
For anyone running into this on iOS 26, Apple added a property named InteractiveContentPopGestureRecognizer which is what you need to disable when running on iOS 26. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
In iOS 15 and above we can perform back navigation using swipe (from left edge of the device). I've noticed that on initial page which is not of type of navigation page if we perform this swipe the app is getting crash in iOS.
To fix this I've found this work around https://learn.microsoft.com/en-us/answers/questions/306452/disable-xamarin-shell-flyout-swipe-gesture
But this disables the swipe for entire app, which is not intended. So how to make it page specific?
Public API Changes
ShellPage
Intended Use-Case
Disable Swipe back gesture for iOS when needed for specific page.
Beta Was this translation helpful? Give feedback.
All reactions