SupportedAppearance

Controls whether the SDK uses light, dark, or device appearance

Definition

public enum SupportedAppearance: Sendable {
    case dark
    case device
    case light
}

Cases

CaseDescription
darkForces the SDK to use dark appearance regardless of the device setting
deviceThe SDK follows the device's current appearance setting
lightForces the SDK to use light appearance regardless of the device setting

Default

public extension SupportedAppearance {
    static let `default`: Self = .device
}
private let supportedAppearance: SupportedAppearance = .default

Sample Usage

private let supportedAppearance: SupportedAppearance = .light