Skip to content

Instantly share code, notes, and snippets.

@cafielo
Last active January 6, 2021 12:57
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 cafielo/1bf3648e314731def212d9ca5be34f58 to your computer and use it in GitHub Desktop.
Save cafielo/1bf3648e314731def212d9ca5be34f58 to your computer and use it in GitHub Desktop.
SwiftUI ViewProtocol
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Hello, world!")
Image(systemName: "swift")
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment