Screen.setIosSwipeBack
Functional API
setIosSwipeGestureEnabledYou can use the same feature with it as well.
Feature description
Turn the swipe-back feature on or off on iOS. isEnabledis trueIf it is enabled, you can go back by swiping, falseif not, it is disabled.
Type
Screen.setIosSwipeBack(options: SetIosSwipeGestureEnabledOptions): Promise<void>;Params
interface SetIosSwipeGestureEnabledOptions {
isEnabled: boolean;
}Response
None.
Example code
import { Screen } from "@apps-in-toss/web-framework";
// When you want to turn off swipe-back
await Screen.setIosSwipeBack({ isEnabled: false });
// When you want to turn swipe-back back on
await Screen.setIosSwipeBack({ isEnabled: true });Was this helpful?