swiftui-simulator-ui_skill

This skill helps you run SwiftUI apps in iOS Simulator to capture screenshots for visual verification and UI validation.
  • Python

7

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill vladimirbrejcha/ios-ai-skills --skill swiftui-simulator-ui

  • SKILL.md11.2 KB

Overview

This skill runs SwiftUI apps in the iOS Simulator and captures screenshots for visual verification. It provides a repeatable workflow to build, install, launch, and image your app across devices and appearances. Use it to get fast visual feedback during UI development, testing, and documentation.

How this skill works

The skill uses xcodebuild to compile a specified scheme into a DerivedData build output, then locates the .app bundle. It uses xcrun simctl to resolve a simulator UDID, boot or prepare the simulator, install and launch the app, and capture screenshots or recordings. It supports deep links, environment overrides, status bar overrides, appearance toggles, and multiple device loops for comprehensive visual checks.

When to use it

  • After changing SwiftUI views to verify layout, spacing, and typography
  • When validating designs against specs or QA acceptance criteria
  • To debug visual issues like clipping, alignment, or missing assets
  • Preparing screenshots for documentation, handoffs, or release notes
  • Testing UI across device sizes, dark mode, and Dynamic Type

Best practices

  • Ensure Xcode and iOS Simulator are installed and the project builds locally
  • Resolve the exact simulator UDID and use it explicitly to avoid wrong targets
  • Override the status bar for clean, consistent screenshots
  • Use environment variables or deep links to reach specific screens deterministically
  • Test on a small set of representative devices rather than every simulator

Example use cases

  • Run a PreviewLab target to show an isolated view, then screenshot for a design review
  • Boot iPhone 16 and iPhone SE, install the app, and capture both screenshots for responsive checks
  • Set UserDefaults mocks via simctl spawn, relaunch the app, and verify onboarding is skipped
  • Toggle dark and light appearances and capture screenshots for theme QA
  • Record a short video of an interaction to demonstrate an animation or bug

FAQ

Xcode with Simulator support and a project that builds successfully. Also ensure at least one available simulator.

How do I target a specific screen?

Use deep links, environment vars (launchctl setenv), or a PreviewLab app target to present the desired view before taking a screenshot.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
swiftui-simulator-ui skill by vladimirbrejcha/ios-ai-skills | VeilStrat