Skip to content

Instantly share code, notes, and snippets.

@dheerajn
Created September 19, 2021 18:51
Show Gist options
  • Save dheerajn/29ed78e38245c3f0eb8535403260936f to your computer and use it in GitHub Desktop.
Save dheerajn/29ed78e38245c3f0eb8535403260936f to your computer and use it in GitHub Desktop.
import Foundation
import SwiftUI
struct View1: View {
var body: some View {
ZStack {
Color.red
Text("View - 1")
}
}
}
struct View2: View {
var body: some View {
ZStack {
Color.yellow
Text("View - 2")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment