Codex Xcode Preview Capture for SwiftUI
Build a SwiftUI preview and capture a simulator image to review alignment, clipping, and other visible issues.
中文Install in Codex
Codex on macOS, Xcode, an iOS simulator, and the Swift toolchain.
- Copy the pinned `.codex/skills/xcode-preview-capture/` directory into `.agents/skills/xcode-preview-capture/` in the project.
- Point `PREVIEW_BUILD_PATH` to the pinned XcodePreviews repository and select `$xcode-preview-capture`.
Example task
Use your own practice view with a two-line title and a button. Ask for a SwiftUI capture and a check for clipped text.What to check
Expect a local PNG and observations on title alignment, the button, and any clipping.
Original SKILL.md on GitHub · Updated
Frequently asked question
What if the tool detects the wrong project?
Supply the explicit `--project` or `--workspace` option.