Contents

main

The current device’s main screen.

Declaration

class var main: XCUIScreen { get }

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