This is a comprehensive API reference for writing XCUITest UI tests in Swift 6, covering everything from basic element queries to coordinate-based gestures. You get the full rundown on XCUIApplication lifecycle management, XCUIElement interactions, and proper waiting patterns including the new waitForNonExistence in Xcode 16. The examples are practical and show real patterns like pull-to-refresh gestures, predicate-based queries, and handling @MainActor requirements. It's dense but well-organized, basically the quick reference you'd want open in a split screen while writing tests. No fluff about testing philosophy, just the API calls you need with working Swift snippets.

skills.sh installs
249
GitHub stars
248
last updated
Jun 3, 2026

Install

$ npx -y skills add vabole/apple-skills --skill xcuitest --agent claude-code

Installs into .claude/skills of the current project.

Files

XCUITest Reference

Comprehensive reference for writing reliable XCUITest UI tests in Swift 6.

Quick Reference

// Basic test structure
@MainActor
final class MyUITests: XCTestCase {
    var app: XCUIApplication!

    override func setUp() {
        super.setUp()
        continueAfterFailure = false
        app = XCUIApplication()
        app.launch()
    }

    func testExample() {
        let button = app.buttons["Submit"]
        XCTAssertTrue(button.waitForExistence(timeout: 5))
        button.tap()
    }
}

Topic Guides

Curated guidance with code examples (grep-friendly):

Sponsors

Details

Repository
github.com/vabole/apple-skills
First seen
Jun 3, 2026

More from vabole/apple-skills

All 12

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs