Created
July 2, 2020 11:19
-
-
Save stevencurtis/9660c6ccd373992b66094a59efd8f7cf to your computer and use it in GitHub Desktop.
swiftuiplayground
This file contains 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 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