Instance Property


The most recently observed state of the application.


var state: XCUIApplication.State { get }


Applications are passively monitored to update this property as they change state. Consequently, updates to this property are inherently asynchronous.

Some guarantees are made, however:

See Also

Determining Application State

enum XCUIApplication.State

The possible states an application can be in during UI testing.