@j2only/ionic-disable-swipe-back
v1.0.5
Published
Vue 3 directive for Ionic framework, disables switching to previous route if the user makes a swipe on iOS devices
Downloads
23
Maintainers
Readme
@j2only/ionic-disable-swipe-back
Installation
Install this component via package manager:
yarn add @j2only/ionic-disable-swipe-back
Usage
Import the component in your app. Example of the main.ts file in your ionic vue project:
<script setup lang="ts">
import App from "./App.vue"
import { DisableSwipeBackDirective } from "@j2only/ionic-disable-swipe-back"
const app = createApp(App)
.directive("disable-swipe-back", DisableSwipeBackDirective)
app.mount("#app")
</script>
In vue template include directive in ion-page
<template>
<ion-page v-disable-swipe-back>
...
</ion-page>
</template>
Licensing
MIT License Forked from @Sitronik/v-disable-swipe-back, Sitronik, MIT License