Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

Ionic 5 - SwipeToClose is impossible

$
0
0

@Jinfreeks wrote:

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 …

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



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