Hello, I've followed the installation steps (yarn add capacitor-plugin-ios-swipe-back and npx cap sync), and included the following setup code in the entry point of the app:
if (window.Capacitor && window.Capacitor.Plugins.IosSwipeBack) {
window.Capacitor.Plugins.IosSwipeBack.enable()
.then(res => console.log('swipe back enabled', res))
.catch(err => console.error('error with swipe back', err))
}
The plugin works and the log shows "swipe back enabled", but it also shows what appears to be an exception:
Hello, I've followed the installation steps (
yarn add capacitor-plugin-ios-swipe-back
andnpx cap sync
), and included the following setup code in the entry point of the app:The plugin works and the log shows "swipe back enabled", but it also shows what appears to be an exception:
XCode also shows a warning for Plugin.swift stating that the assignment to
allowsBackForwardNavigationGestures
should be done on the main thread.