Last active
September 6, 2019 08:55
-
-
Save WildStudio/9f27acc385a4ecf7bccabf747429a663 to your computer and use it in GitHub Desktop.
GeometryReader
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
struct ContentView: View { | |
var body: some View { | |
GeometryReader { geometry in | |
HStack { | |
Text("SwiftUI") | |
.frame(width: geometry.size.width / 2, height: 100) | |
Text("Basics") | |
.frame(width: geometry.size.width / 2, height: 100) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment