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.
Key features
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.
apps/webNext.js workspace, editor, dialogs and worker hostswift-syntaxLexer, parser, syntax tree and source editsswift-semaName resolution, semantic analysis and design editsswift-runtimeA Swift interpreterswiftui-runtimeSwiftUI state, view composition and interactionsswiftui-layoutLayout and text measurementswiftui-render-domRender-tree presentationproject-modelProjects, files, templates, persistence and sharingexporterProject scaffolding and ZIP import and exportshared · sim-shellShared types and device specificationsThe 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.
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.ziparchives - 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