<!--
{
  "availability" : [
    "iOS: 2.0.0 - 13.0.0",
    "iPadOS: 2.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: 9.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UI_USER_INTERFACE_IDIOM()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@F@UI_USER_INTERFACE_IDIOM"
  },
  "title" : "UI_USER_INTERFACE_IDIOM()"
}
-->

# UI_USER_INTERFACE_IDIOM()

Returns the interface idiom supported by the current device (recommended for apps that run in versions of iOS earlier than 3.2).

```
func UI_USER_INTERFACE_IDIOM() -> UIUserInterfaceIdiom
```

## Return Value

[`UIUserInterfaceIdiom.phone`](/documentation/UIKit/UIUserInterfaceIdiom/phone) if the device is an iPhone or iPod touch or [`UIUserInterfaceIdiom.pad`](/documentation/UIKit/UIUserInterfaceIdiom/pad) if the device is an iPad.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)