---
title: main
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiscreen/main
---

# main

Returns the screen object representing the device’s screen.

## Declaration

```swift
class var main: UIScreen { get }
```

## Return Value

Return Value The screen object for the device.

## Discussion

Discussion Apple discourages the use of this symbol. Use a UIScreen instance found through context instead. For example, reference the screen that displays a view through the screen property on the window scene managing the window containing the view.

## See Also

### Deprecated properties

- [screens](uikit/uiscreen/screens.md)
- [applicationFrame](uikit/uiscreen/applicationframe.md)
- [focusedItem](uikit/uiscreen/focuseditem.md)
- [focusedView](uikit/uiscreen/focusedview.md)
- [supportsFocus](uikit/uiscreen/supportsfocus.md)
