You can now wait for elements in UI Testing with a single line. let app = XCUIApplication() let label = app.labels["Wait for me..."] XCTAssert(label.waitForExistence(timeout: 5))) Read on for how to do the same in older versions of Xcode. Waiting is hard, and waiting in Xcode is no exception. Even choosing from the myriad of options Xcode and XCTest provide can be difficult. Read on to learn an ea
![Waiting in XCTest | Masilotti.com](https://cdn-ak-scissors.b.st-hatena.com/image/square/f2ed2ff9d9cbef8e8b64572df7c2e7a1f5159243/height=288;version=1;width=512/https%3A%2F%2Fmasilotti.com%2Fassets%2Fimages%2Fog%2Fxctest-waiting.png)