Skip to content

Instantly share code, notes, and snippets.

@RxDx
Created October 10, 2019 23:51
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 RxDx/b4afe311851091d18b58482060b434d4 to your computer and use it in GitHub Desktop.
Save RxDx/b4afe311851091d18b58482060b434d4 to your computer and use it in GitHub Desktop.
SwiftUI @ Playground
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
var body: some View {
Text("Hello World")
}
}
let host = UIHostingController(rootView: ContentView())
PlaygroundPage.current.liveView = host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment