Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

capacitor-swipe-back

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-swipe-back

Enable the back/forward swipe guestures support for iOS

latest
Source
npmnpm
Version
4.0.5
Version published
Weekly downloads
20
1900%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

capacitor

FAQs

Package last updated on 22 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts