Contents

userInterfaceIdiom

The style of interface to use on the current device.

Declaration

var userInterfaceIdiom: UIUserInterfaceIdiom { get }

Discussion

For universal applications, you can use this property to tailor the behavior of your application for a specific type of device. For example, iPhone and iPad devices have different screen sizes, so you might want to create different views and controls based on the type of the current device.

See Also

Identifying the device and operating system