enableDarkMode
This property allows the super app to control whether to enable dark mode support for the SDK. When enabled, the SDK UI pages or components switch according to the system theme mode.
Note: Must configure this property before initializing the SDK.
Property
copy
/**
* Default is NO
*/
@property (nonatomic, assign) BOOL enableDarkMode API_AVAILABLE(ios(13.0));
Name | Type | Description | Required |
enableDarkMode | BOOL | Controlls whether to enable dark mode support for the SDK. Valid value:
| Yes |
Sample
copy
func createGriverConfiguration() -> GRVConfiguration {
let configuration = GRVConfiguration()
configuration.enableDarkMode = true
return configuration
}