Skip to content

AryanRogye/SwiftUIPreviewRunner

Repository files navigation

SwiftUI Preview Runner

SwiftUI playground without Xcode

Paste SwiftUI code → compiles → runs as preview app.

Xcode previews are powerful, but they are tied to Xcode projects and can feel heavy for quick UI experiments. This explores a faster feedback loop for testing small SwiftUI views in isolation.

Note: This started as a proof of concept while building another app. I'm sharing it because the core idea worked and others might find it useful or want to build on it. Not sure where it goes from here. open to ideas.

This recording is from an earlier version, before the workflow was made async. The current version now runs asynchronously, so the UI no longer blocks during execution

Screen.Recording.2026-05-01.at.9.45.23.PM.mov

Codex Integration

Screenshot 2026-05-02 at 7 24 06 PM

| This is crazy like mind blown 🤯 I just kept throwing crazy shit at it and it kept doing it😂

Security Note

Previews are compiled and loaded into the host app process. Do not run untrusted Swift code with this tool.

Tauri Integration

The preview engine can be embedded inside a Tauri app, allowing a web-based UI to control a fully native SwiftUI preview renderer.

Screenshot 2026-05-02 at 9 41 36 PM

License

MIT License. See LICENSE.

About

Paste SwiftUI code, see it live. No Xcode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors