---
title: UI_USER_INTERFACE_IDIOM()
framework: uikit
role: symbol
role_heading: Function
path: uikit/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).

## Declaration

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

## Return Value

Return Value UIUserInterfaceIdiom.phone if the device is an iPhone or iPod touch or UIUserInterfaceIdiom.pad if the device is an iPad.

## See Also

### Getting the current idiom

- [UIUserInterfaceIdiom](uikit/uiuserinterfaceidiom.md)
