MiniSwift Studio Embed
SwiftUI embeds for lessons and docs.
Students and readers can edit SwiftUI, tap controls, and see the live preview in the page. No Mac, no Xcode, no account, no server-side compiler.
Editable code
Live iPhone preview
No backend
ContentView.swift
Live preview
Snippet generator
Paste SwiftUI. Ship an iframe.
The generator encodes your ContentView.swift into the URL. No backend, no saved project, no extra files.
SwiftUI snippet
ContentView.swift
Useful parameters
code loads a base64url encoded ContentView.swift. preview=1 shows only the live canvas. chrome=off removes Studio shell chrome. readonly=1 keeps the editor visible but locked.
Course friendly
Each embed is just a URL-backed snippet. Readers stay on your page, run the example in place, and can open the same code in Studio when they want a larger workspace.