---
title: main
framework: xcuiautomation
role: symbol
role_heading: Type Property
path: xcuiautomation/xcuiscreen/main
---

# main

The current device’s main screen.

## Declaration

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

## Discussion

Discussion On macOS, main represents the screen that owns the menu bar. On iOS and tvOS, main represents the primary screen of the device.

## See Also

### Device screens

- [screens](xcuiautomation/xcuiscreen/screens.md)
