SuperwallOptions
A configuration class for customizing paywall appearance and behavior.
Only modify networkEnvironment
if explicitly instructed by the Superwall team. Use .release
(default) for production apps.
Use different SuperwallOptions
configurations for debug and release builds to optimize logging and behavior for each environment.
The SDK automatically chooses StoreKit 2 on iOS 15+ and falls back to StoreKit 1 on older versions, but you can override this with storeKitVersion
.
Purpose
Configures various aspects of Superwall behavior including paywall presentation, networking, logging, and StoreKit version preferences.
Signature
Parameters
Property | Type | Description |
---|---|---|
paywalls | PaywallOptions | Configuration for paywall appearance and behavior. |
storeKitVersion | StoreKitVersion | Preferred StoreKit version (.storeKit1 or .storeKit2 ). Defaults to StoreKit 2 on iOS 15+. |
networkEnvironment | NetworkEnvironment | Network environment (.release , .releaseCandidate , .developer , .custom(String) ). Use only if instructed by Superwall team. |
logging | LoggingOptions | Logging configuration including level and scopes. |
localeIdentifier | String? | Override locale for paywall localization (e.g., "en_GB"). |
Returns / State
This is a configuration object used when calling configure()
.
Usage
Basic options setup:
PaywallOptions configuration:
Logging configuration:
Real-world example for production:
Debug configuration for development:
How is this guide?