Interactive swipe to dismiss keyboard

Is there an equivalent of UIScrollView.KeyboardDismissMode that can be used to get the behavior where you swipe down to dismiss the keyboard?

1 Like

Need this feature in capacitor! iOS input navigation is terrible without it

I still want this functionality but one can use a keyboard dismissal on scroll event to workaround a specific keyboard dismissal gesture

content.page.html

<ion-header>
  <ion-toolbar>
    <ion-searchbar></ion-searchbar>
  </ion-toolbar>
</ion-header>
<ion-content role="feed" [scrollEvents]="true" (ionScrollStart)=handleScroll"($event)">
  <ion-list>
    ...
  </ion-list>
</ion-content>

content.page.ts

import { Keyboard } from '@capacitor/keyboard';

handleScroll(event: Event) {
  if (event != null) {
    Keyboard.hide();
  }
}