Advanced
Game Controller Support
Let players navigate Superwall paywalls with a game controller on iOS. Turn on isGameControllerEnabled, then forward input with gamepadValueChanged.
First, set the SuperwallOption isGameControllerEnabled to true:
let options = SuperwallOptions()
options.isGameControllerEnabled = true
Superwall.configure(apiKey: "MY_API_KEY", options: options);Forward events to your paywall by calling gamepadValueChanged(gamepad:element:) from your own gamepad's valueChanged handler:
controller.extendedGamepad?.valueChangedHandler = { gamepad, element in
// send values to Superwall
Superwall.shared.gamepadValueChanged(gamepad: gamepad, element: element)
// ... rest of your code
}How is this guide?
Purchasing Products Outside of a Paywall
Buy products outside a paywall with Superwall's purchase method on iOS, using StoreKit 1, StoreKit 2 or StoreProduct, then read the PurchaseResult.
Migrating from v3 to v4 - iOS
SuperwallKit 4.0 is a major release of Superwall's iOS SDK. This introduces breaking changes.