Enumeration

UIUserInterfaceStyle

Constants indicating the interface style for the app.

Declaration

enum UIUserInterfaceStyle : Int

Topics

Interface Styles

case unspecified

An unspecified interface style.

case light

The light interface style.

case dark

The dark interface style.

See Also

Retrieving Interface-Related Traits

var userInterfaceStyle: UIUserInterfaceStyle

The style associated with the user interface.

var userInterfaceIdiom: UIUserInterfaceIdiom

The user interface idiom of the trait collection.

enum UIUserInterfaceIdiom

The interface type for the device or an object that has a trait environment, such as a view and view controller.

var userInterfaceLevel: UIUserInterfaceLevel

The elevation level of the interface.

Beta
enum UIUserInterfaceLevel

Constants indicating the visual level for content in the window.

Beta
var layoutDirection: UITraitEnvironmentLayoutDirection

The layout direction associated with the current environment.

enum UITraitEnvironmentLayoutDirection

Constants indicating the layout direction associated with the current environment.

var accessibilityContrast: UIAccessibilityContrast

The accessibility contrast associated with the current environment.

Beta
enum UIAccessibilityContrast

Constants indicating the accessibility contrast setting.

Beta
var legibilityWeight: UILegibilityWeight

The font weight to apply to text.

Beta
enum UILegibilityWeight

Constants indicating the weight to apply to text in your interface.

Beta