Swipe to previous page like Telegram

ViktorBylbasViktorBylbas UAMember ✭✭
edited January 14 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)            
      {              
           base.ViewWillAppear(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:

Answers

Sign In or Register to comment.