ionic-team / ionic-v3

The repo for Ionic 3.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
129 stars 86 forks source link

navCtrl.swipeBackEnabled=false does not work in iOS 14 Beta 3 #1116

Closed angelofan closed 3 years ago

angelofan commented 3 years ago

I'm submitting a ... (check one with "x") [x] bug report [ ] feature request

Current behavior:

swipeBackEnabled does not work in iOS 14 Beta 3.

import { NavController } from 'ionic-angular';
constructor(public navCtrl: NavController) {}

ionViewDidLoad() {
    this.navCtrl.swipeBackEnabled = false;
}

This works normally in iOS 13 and iOS 14 Beta 1 and iOS 14 Beta 2, but it does not work in iOS 14 Beta 3. Gestures can still return the page.

Expected behavior:

In iOS 14 Beta 3, you can disable returning to the page through gestures in this way.

Steps to reproduce:

import { NavController } from 'ionic-angular';
constructor(public navCtrl: NavController) {}

ionViewDidLoad() {
    this.navCtrl.swipeBackEnabled = false;
}

Run the ionic3 application containing the above disabled gesture code in iOS 14 Beta 3, switch pages, swipe with gestures, and the page is still returned.

I am not sure if there is such a problem in ionic4.

It looks like a problem with iOS 14 Beta 3, but I can't confirm whether it is the culprit.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   Ionic CLI          : 6.10.0 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.4

Capacitor:

   Capacitor CLI   : 1.3.0
   @capacitor/core : 1.0.0-beta.17

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 9.0.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.0, (and 30 other plugins)

Utility:

   cordova-res (update available: 0.15.1) : 0.14.0
   native-run                             : not installed

System:

   ios-deploy : 1.10.0
   ios-sim    : 8.0.2
   NodeJS     : v14.4.0 (/usr/local/bin/node)
   npm        : 6.14.5
   OS         : macOS Catalina
   Xcode      : Xcode 11.6 Build version 11E708
angelofan commented 3 years ago

It works fine in iOS 14 Beta 4, so I will close this issue thread.