A trait describes part of the current device configuration. Traits include the screen area available for your app, the resolution of the display, the color gamut, and light or dark appearance. You can create variations of your user interface elements for different combinations of traits.
Trait | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Apple Watch size | The size of Apple Watch face. | ||||||||||
Color gamut | The color space used by the iOS device. | ||||||||||
Display scale | The pixel density of the screen. | ||||||||||
Graphics | The version of Metal used on the device. | ||||||||||
Horizontal size class | The general width available to your iOS app. | ||||||||||
Idiom | The type of device, such as iPhone, iPad, and Mac. | ||||||||||
Interface style | The light or dark style of the user interface in tvOS. | ||||||||||
Language direction | The default horizontal display direction for the device language. | ||||||||||
Memory | The amount of random access memory for a device. | ||||||||||
Vertical size class | The general height available to your iOS app. |