Created
April 25, 2022 08:51
-
-
Save peppesapienza/ffef2321a9e92e3af63060ad645febfc to your computer and use it in GitHub Desktop.
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 SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
VStack { | |
top | |
Spacer() | |
mid | |
Spacer() | |
bottom | |
}.padding() | |
} | |
var top: some View { | |
HStack { | |
Text("A") | |
Spacer() | |
Text("B") | |
} | |
} | |
var mid: some View { | |
VStack { | |
Text("X") | |
} | |
} | |
var bottom: some View { | |
HStack { | |
Text("C") | |
Spacer() | |
Text("D") | |
} | |
} | |
} | |
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