Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Swipe to previous page like Telegram

$
0
0

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:


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>