Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created July 2, 2020 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/9660c6ccd373992b66094a59efd8f7cf to your computer and use it in GitHub Desktop.
Save stevencurtis/9660c6ccd373992b66094a59efd8f7cf to your computer and use it in GitHub Desktop.
swiftuiplayground
import UIKit
import PlaygroundSupport
import SwiftUI
struct ContentView: View {
var body: some View {
Text("Hello, world!")
}
}
let viewController = UIHostingController(rootView: ContentView())
PlaygroundPage.current.liveView = viewController
PlaygroundPage.current.needsIndefiniteExecution = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment