Iron-Ham contributor

Preview Build

Build and snapshot SwiftUI previews from Xcode projects or SPM so your coding agent can reason about iOS UI visually.

Overview

preview-build is a plugin marketplace for the Build phase that builds and captures SwiftUI previews from Xcode and SPM for agent-side visual analysis.

What is this marketplace?

  • Builds previews for Xcode projects, Swift Package Manager packages, and standalone Swift files
  • Captures preview output for visual analysis by Claude Code and similar agents
  • Keywords cover Swift, SwiftUI, simulator, and iOS tooling (v2.0.7, MIT)
  • Single-plugin marketplace focused on one preview-build skill
  • Homepage and repo: Iron-Ham/XcodePreviews on GitHub
  • 1 plugin in marketplace
  • preview-build version 2.0.7
  • MIT license

Compatible agents: Claude Code, Cursor, Codex, any compatible agent

Community signal: 141 GitHub stars.

What problem does it solve?

Coding agents cannot see your SwiftUI previews, so UI feedback devolves into guesswork and endless back-and-forth screenshots.

Who is it for?

Indie iOS developers using Claude Code locally with Xcode who want visual context without manually exporting preview PNGs.

Skip if: Teams building only web or Android apps, or anyone who needs automated App Store screenshots and marketing assets from this marketplace alone.

What do I get? / Deliverables

After install, your agent can trigger preview builds and use captured imagery to critique layout, spacing, and visual regressions in context.

  • Built preview artifacts suitable for agent visual review
  • Repeatable preview-build workflow across project types

Plugins in this marketplace

1 plugin — install individually after you add the marketplace.

Recommended Marketplaces

Journey fit

Primary fit

Preview capture is part of implementing and iterating on native iOS/SwiftUI screens before ship. Targets SwiftUI/Xcode workflows—frontend mobile UI—not backend or distribution.

How it compares

iOS preview-capture skill bundle, not a generic design-system or MCP token server.

Common Questions / FAQ

Who is Preview Build for?

Solo and small-team SwiftUI developers who use AI coding agents and already maintain #Preview blocks or preview-capable targets in Xcode.

When should I use Preview Build?

Use it while implementing or refactoring SwiftUI screens when you want the agent to inspect rendered previews instead of inferring UI from source alone.

How do I add Preview Build to my agent?

Add the Iron-Ham/XcodePreviews Claude marketplace plugin Preview Build to your Claude Code (or compatible) plugin list and run builds on a Mac with Xcode installed.

This week for builders

Five minutes, every Monday — the tools, releases and tactics for shipping solo.

unsubscribe anytime.