A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello @Omkar Pawar ,
Thanks for your question.
Instead of disabling globally, I suggest disabling on sensitive pages like your signing page because Apple's HIG guideline 2.5.6 discourages disabling system gestures app-wide. Furthermore, Swipe-back is a familiar and expected iOS gesture.
You can refer to the following example code:
public partial class SignaturePage : ContentPage
{
public SignaturePage()
{
InitializeComponent();
}
protected override void OnAppearing()
{
base.OnAppearing();
#if IOS
SetSwipeBack(false);
#endif
}
protected override void OnDisappearing()
{
base.OnDisappearing();
#if IOS
SetSwipeBack(true);
#endif
}
#if IOS
private void SetSwipeBack(bool enabled)
{
var vc = Platform.GetCurrentUIViewController();
if (vc?.NavigationController?.InteractivePopGestureRecognizer != null)
{
vc.NavigationController.InteractivePopGestureRecognizer.Enabled = enabled;
}
}
#endif
}
If any part of my explanation helped address your question, I would greatly appreciate it if you could follow the instructions here. This can also help other community members facing similar scenarios.