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

# screens

The current device’s active screens.

## Declaration

```swift
class var screens: [XCUIScreen] { get }
```

## Discussion

Discussion The first screen in the array represents the main screen.

## See Also

### Device screens

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