Light / Dark modes

By default, the kevin. mobile SDK offers KevinTheme, which utilizes the same set of colors for both light and dark interface modes.

You have the flexibility to override KevinTheme and provide light and dark colors using Xcode Assets. This customization makes the SDK's user interface to seamlessly adapt and change colors based on the current interface mode.

In case you want to support only one color scheme in SDKs UI you can:

  1. Setup your Xcode Assets Color Set to use same color for both - light and dark - interface modes by setting its Appearance to None

  2. Force SDK to use particular interface mode making use of Apple overrideUserInterfaceStyle:

if #available(iOS 13.0, *) {
    UIApplication.shared.keyWindow?.overrideUserInterfaceStyle == .dark
}

Last updated