Skip to content

Instantly share code, notes, and snippets.

@interstateone
Created August 13, 2019 21:17
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 interstateone/1cb682565f11093bac4eb5ea9d4c3832 to your computer and use it in GitHub Desktop.
Save interstateone/1cb682565f11093bac4eb5ea9d4c3832 to your computer and use it in GitHub Desktop.
Use with `playground -u URL`. https://github.com/JohnSundell/Playground
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
var body: some View {
Text("Hello World! 👋🌎")
}
}
PlaygroundPage.current.liveView = UIHostingController(rootView: ContentView())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment