Forum Xamarin.Forms

Swipe to previous page like Telegram

ViktorBylbasViktorBylbas UAMember ✭✭
edited January 2019 in Xamarin.Forms

How create swipe to back?

In iOS:


[assembly: ExportRenderer(typeof(HIPSTO.Controls.CustomContentPage), typeof(HIPSTO.iOS.Platform.Renderers.IOSPageRenderer))]     
namespace HIPSTO.iOS.Platform.Renderers 
  public class IOSPageRenderer : PageRenderer        
      public override void ViewWillAppear(bool animated)            

            ViewController.NavigationController.InteractivePopGestureRecognizer.Enabled = true;
            ViewController.NavigationController.InteractivePopGestureRecognizer.Delegate = new UIKit.UIGestureRecognizerDelegate();

But it only works from the edge. It is necessary from any place.
No ideas with android

As below shown:


Sign In or Register to comment.