4.0.5 • Published 1 year ago

capacitor-swipe-back v4.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

capacitor-swipe-back

Enable the back/forward swipe gestures support for iOS

Install

npm install capacitor-swipe-back
npx cap sync

Swiping without this plugin

this only enable swipe back. U can't control behavior in runtime

# AppDelegate.swift

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // other code

    // capacitor v4
    bridge.webview?.allowsBackForwardNavigationGestures = true;

    // capacitor v3
    bridge.getWebView()?.allowsBackForwardNavigationGestures = true;

    return true
}

Methods

enable()

Enable the back/forward swipe gestures support for iOS

import { IosSwipeBackPlugin } from 'capacitor-swipe-back'

await IosSwipeBackPlugin.enable()

disable()

Disable the back/forward swipe gestures support for iOS

import { IosSwipeBackPlugin } from 'capacitor-swipe-back'

await IosSwipeBackPlugin.disable()

PR welcomed

4.0.5

1 year ago

0.0.1

1 year ago

4.0.4

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago