Link Search Menu Expand Document

UserInterfaceIdiom

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

public enum UserInterfaceIdiom: Int 

Inheritance

Int

Enumeration Cases

unspecified

An unspecified idiom.

case unspecified = -1

phone

An interface designed for a phone.

case phone

pad

@available(*, deprecated, renamed: "UserInterfaceIdiom.tablet")
  case pad

tv

An interface designed for a TV.

case tv

carPlay

@available(*, deprecated, message: "Use UserInterfaceIdiom.car")
  case carPlay

mac

@available(*, deprecated, renamed: "UserInterfaceIdiom.desktop")
  case mac

tablet

An interface designed for a tablet.

case tablet

car

An interface designed for a car display.

case car

desktop

An interface designed for a desktop or laptop.

case desktop

headset

An interface designed for a AR/VR device.

case headset