Skip to content

Instantly share code, notes, and snippets.

@WildStudio
Last active September 4, 2019 10:17
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 WildStudio/d52982f5e25840fd0e0cd9a3f510d8c1 to your computer and use it in GitHub Desktop.
Save WildStudio/d52982f5e25840fd0e0cd9a3f510d8c1 to your computer and use it in GitHub Desktop.
Adding Spacing and alignment inside your SwiftUI stacks
HStack (spacing: 100) {
VStack {
Text("WAMF")
Text("Tutorial")
}
VStack(alignment: .trailing) {
Text("SwiftUI")
Text("Basics")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment