Open-source SwiftUI testing skill for Claude Code uses Computer Use to visually test apps

✍️ OpenClawRadar📅 Published: March 31, 2026🔗 Source
Open-source SwiftUI testing skill for Claude Code uses Computer Use to visually test apps
Ad

An open-source skill for Claude Code called swiftui-autotest-skill leverages Claude's new Computer Use capability to visually test SwiftUI applications without writing test code.

How it works

You run /ios-test and the agent:

  • Finds your .xcodeproj file
  • Picks a Simulator
  • Builds the app
  • Installs it
  • Navigates through every single screen using Computer Use

The agent interacts with the app exactly like a real user would: tapping buttons, scrolling lists, following navigation links, and switching tabs.

What it catches

  • Layout bugs (overflow, overlapping views, truncated text)
  • Crashes (analyzes Simulator crash logs with stack traces mapped to your source code)
  • Broken navigation (tests every tab, every link, back navigation)
  • Non-responsive interactive elements
  • Missing accessibility identifiers (and offers to auto-fix them)
Ad

Extra flags

  • --states → tests empty, error, and loading states via launch arguments
  • --performance → measures RAM per screen, detects memory leaks
  • --flow=onboarding → tests a specific user flow end-to-end
  • --screenshot-all → captures every step

Additional feature

The skill also includes /add-accessibility which scans all SwiftUI views and auto-adds missing .accessibilityIdentifier() using a clean {screen}-{type}-{name} convention. This makes testing more reliable and prepares your app for VoiceOver.

The approach requires no XCUITest, no test targets, and no boilerplate. The agent visually inspects your app and reports issues.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also