Created
October 10, 2019 23:51
-
-
Save RxDx/b4afe311851091d18b58482060b434d4 to your computer and use it in GitHub Desktop.
SwiftUI @ Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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