Skip to content

Instantly share code, notes, and snippets.

@balrajOla
Created June 4, 2019 18:30
Show Gist options
  • Save balrajOla/44a6857ec069c33a0f5f20fa7ecf7396 to your computer and use it in GitHub Desktop.
Save balrajOla/44a6857ec069c33a0f5f20fa7ecf7396 to your computer and use it in GitHub Desktop.
import SwiftUI
import PlaygroundSupport
struct ContainerView: View {
var body: some View {
VStack() {
Text ("Hello World")
.font(.title)
.color(.blue)
Text ("How are you?")
.bold()
.color(.blue)
}
}
}
PlaygroundPage.current.liveView = UIHostingController(rootView: ContainerView())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment