Skip to content

Dark Mode

levching edited this page Apr 15, 2020 · 3 revisions

The following code snippet shows how you can define if the user set dark mode UI inside the iOS Settings app

DarkMode

using SA.iOS.UIKit;
...

var userInterfaceStyle = ISN_UIScreen.MainScreen.TraitCollection.UserInterfaceStyle;
if (userInterfaceStyle == ISN_UIUserInterfaceStyle.Dark)
{
    // Use Dark Skin.
}
else
{
    //use Light Skin.
}

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally