Enumeration

UIUserInterfaceIdiom

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

Declaration

typedef enum UIUserInterfaceIdiom : NSInteger {
    ...
} UIUserInterfaceIdiom;

Topics

Idioms

UIUserInterfaceIdiomUnspecified

An unspecified idiom.

UIUserInterfaceIdiomPhone

An interface designed for iPhone and iPod touch.

UIUserInterfaceIdiomPad

An interface designed for iPad.

UIUserInterfaceIdiomTV

An interface designed for tvOS and Apple TV.

UIUserInterfaceIdiomCarPlay

An interface designed for an in-car experience.

See Also

Retrieving Interface-Related Traits

userInterfaceStyle

The style associated with the user interface.

UIUserInterfaceStyle

Constants indicating the interface style for the app.

userInterfaceIdiom

The user interface idiom of the trait collection.

userInterfaceLevel

The elevation level of the interface.

Beta
UIUserInterfaceLevel

Constants indicating the visual level for content in the window.

Beta
layoutDirection

The layout direction associated with the current environment.

UITraitEnvironmentLayoutDirection

Constants indicating the layout direction associated with the current environment.

accessibilityContrast

The accessibility contrast associated with the current environment.

Beta
UIAccessibilityContrast

Constants indicating the accessibility contrast setting.

Beta
legibilityWeight

The font weight to apply to text.

Beta
UILegibilityWeight

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

Beta