From 69469fa2ad12dd8100d28f2a93df03c2ce4486dd Mon Sep 17 00:00:00 2001 From: metacryst Date: Sun, 19 Apr 2026 21:56:09 -0500 Subject: [PATCH] Swipe navigation library --- ios/App/Podfile | 1 + ios/App/Podfile.lock | 8 +++++++- package.json | 3 ++- src/mobileutil.js | 2 ++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ios/App/Podfile b/ios/App/Podfile index c4695eb..7166ed4 100644 --- a/ios/App/Podfile +++ b/ios/App/Podfile @@ -19,6 +19,7 @@ def capacitor_pods pod 'CapacitorPreferences', :path => '../../node_modules/@capacitor/preferences' pod 'CapacitorPushNotifications', :path => '../../node_modules/@capacitor/push-notifications' pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen' + pod 'NotnotsamuelCapacitorSwipeBack', :path => '../../node_modules/@notnotsamuel/capacitor-swipe-back' end target 'App' do diff --git a/ios/App/Podfile.lock b/ios/App/Podfile.lock index 13b1afa..bf7b21b 100644 --- a/ios/App/Podfile.lock +++ b/ios/App/Podfile.lock @@ -31,6 +31,8 @@ PODS: - GoogleMaps/Base - IONFilesystemLib (1.1.2) - IONGeolocationLib (1.0.1) + - NotnotsamuelCapacitorSwipeBack (3.0.2): + - Capacitor DEPENDENCIES: - "Capacitor (from `../../node_modules/@capacitor/ios`)" @@ -43,6 +45,7 @@ DEPENDENCIES: - "CapacitorPreferences (from `../../node_modules/@capacitor/preferences`)" - "CapacitorPushNotifications (from `../../node_modules/@capacitor/push-notifications`)" - "CapacitorSplashScreen (from `../../node_modules/@capacitor/splash-screen`)" + - "NotnotsamuelCapacitorSwipeBack (from `../../node_modules/@notnotsamuel/capacitor-swipe-back`)" SPEC REPOS: trunk: @@ -72,6 +75,8 @@ EXTERNAL SOURCES: :path: "../../node_modules/@capacitor/push-notifications" CapacitorSplashScreen: :path: "../../node_modules/@capacitor/splash-screen" + NotnotsamuelCapacitorSwipeBack: + :path: "../../node_modules/@notnotsamuel/capacitor-swipe-back" SPEC CHECKSUMS: Capacitor: 09d9ff8e9618e8c4b3cab2bbee34a17215dd2fef @@ -88,7 +93,8 @@ SPEC CHECKSUMS: GoogleMaps: 8939898920281c649150e0af74aa291c60f2e77d IONFilesystemLib: 21a63377696b2d8fab5632ecfb7d2ac67bddb68a IONGeolocationLib: 20f9d0248a0b5264511fb57a37e25dd2badf797a + NotnotsamuelCapacitorSwipeBack: 07a8985928db83b1d62a1d596246db466e69d149 -PODFILE CHECKSUM: 32ad5bbf56056f7ee8d159f9eae42fe03e911a61 +PODFILE CHECKSUM: d7fbdcfecbb81edc39c9975b338d5d15e186424b COCOAPODS: 1.15.2 diff --git a/package.json b/package.json index 1aaf9a2..54a4cd3 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "@capacitor/ios": "^7.4.4", "@capacitor/preferences": "^7.0.4", "@capacitor/push-notifications": "^7.0.6", - "@capacitor/splash-screen": "^7.0.3" + "@capacitor/splash-screen": "^7.0.3", + "@notnotsamuel/capacitor-swipe-back": "^3.0.2" }, "devDependencies": { "@capacitor/cli": "latest", diff --git a/src/mobileutil.js b/src/mobileutil.js index 7f93a62..28028ec 100644 --- a/src/mobileutil.js +++ b/src/mobileutil.js @@ -5,6 +5,7 @@ import { Haptics, ImpactStyle } from '@capacitor/haptics'; import { Camera, CameraResultType, CameraSource } from '@capacitor/camera'; import { Geolocation } from '@capacitor/geolocation'; import { SplashScreen } from '@capacitor/splash-screen'; +import { CapacitorSwipeBackPlugin } from '@notnotsamuel/capacitor-swipe-back'; window.capacitor = { Preferences, @@ -18,6 +19,7 @@ window.capacitor = { CameraSource, Geolocation, SplashScreen, + CapacitorSwipeBackPlugin } window.mobileUtil = class mobileUtil {