Swift Web Studio app iconSwift Web Studio app icon

Swift Web Studio

Edit SwiftUI layouts visually in your browser.

Swift Web Studio combines a visual editor, Swift source code and a device preview. Start from a template or import Swift files, edit the supported layouts and export the project for further work in Xcode.

Visual edits update the underlying Swift source. The browser preview supports a subset of Swift and SwiftUI; exported projects still need to be built and checked in Xcode.

Visual editing with Swift source

  • Source-preserving edits. Visual changes are made on the underlying Swift; anything the canvas can’t edit stays editable in code.

  • Components. Instance inputs, saved variants, and shared colors, spacing and text styles.

  • Collections. Records with a shared row design, and preview scenarios for trying content.

  • Device preview. An interactive preview across device sizes, appearances and text sizes.

  • Checks. Flags potential contrast, touch-target and overflow issues.

  • Present. Show screens, or export PNGs and contact sheets.

  • Shared undo. Organize screens and layers with undo and redo across both.

  • Images. Import PNG and JPEG, with optional dark variants.

  • Autosave and archives. Projects save in the browser; download an editable archive any time.

Under the hood.

The compiler, interpreter and layout packages are independent of React and the DOM. The preview runs in a Web Worker.

Editor
apps/webNext.js workspace, editor, dialogs and worker host
Language
swift-syntaxLexer, parser, syntax tree and source edits
swift-semaName resolution, semantic analysis and design edits
Runtime
swift-runtimeA Swift interpreter
swiftui-runtimeSwiftUI state, view composition and interactions
Rendering
swiftui-layoutLayout and text measurement
swiftui-render-domRender-tree presentation
Projects
project-modelProjects, files, templates, persistence and sharing
exporterProject scaffolding and ZIP import and export
shared · sim-shellShared types and device specifications

The preview interprets a supported subset of Swift and SwiftUI. It does not run Apple’s compiler or the iOS Simulator, so exported apps are built and reviewed in Xcode before release.

Export and sharing options

Swift source is preserved in every format.

  • Xcode project

    A ready-to-open project for native development.

  • Swift Playgrounds app

    Open and run it on iPad or Mac.

  • Swift package

    Drop the views into an existing app.

  • XcodeGen spec

    Generate the project from a specification.

  • Editable archive

    A portable .swiftstudio.zip with source, images, settings and designer metadata.

  • Share link

    Image-free projects travel in the URL itself.

Technical details

Stack
TypeScript; a Next.js workspace with independent language, runtime and layout packages
Preview
A Swift and SwiftUI interpreter in a Web Worker, covering a documented subset
Storage
Autosave in the browser (IndexedDB); editable .swiftstudio.zip archives
Export
Xcode project, Swift Playgrounds app, Swift package, XcodeGen specification
Prompts
Optional prompt-based creation, with your own provider key
Quality
CI with type checks, lint and unit tests; Playwright end-to-end tests; a bundle-size budget
Run it
Live demo, or locally with Node.js 22 and npm 11 · GitHub

More apps and tools