Hello,
My problem is quite simple : I try to implement a component in modal, but when I try to add SwipeToClose, it’s not working (The modal stay static even if I try to swipe down) …
I’m really confused, but I’ve create a Stackblitz to show you my issue in detail, maybe I miss something important … : https://stackblitz.com/edit/ionic-angular-v5-u4wmun
My component :
import { Component, Injectable } from '@angular/core';
import { NavController, ModalController } from '@ionic/angular';
import { ModalComponent } from './modal/modal.component';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
myModal:any;
constructor(
public modalController: ModalController
) {
}
async presentModal() {
this.myModal = await this.modalController.create({
component: ModalComponent,
swipeToClose: true,
backdropDismiss: true
});
return await this.myModal.present();
}
}
Thanks to your time !
PS : I try to use it in iOS only, I’ve already try on my iOS device and it’s doesn’t work too …