iOS can't disable swipe back


#1

Hi,

I’m trying to disable swipe back on my app but can’t seem to stop it.
I’ve tried disabling it using:

  1. adding the disable on ion-nav:
    <ion-nav id=“content” [root]=“rootPage” #content swipe-back-enabled=“false”>
  2. by adding it to the ionic config (loaded in the Angular config)
    swipeBackEnabled: false

What am I missing? Was anyone able to disable this?


#2

Isn’t this how it’s supposed to be written? :slight_smile:

<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

#3

I’ll give it a go, I definitly just copy pasted that from somewhere :smiley: