Skip to content

Instantly share code, notes, and snippets.

@scott-lydon
Created September 24, 2022 22:02
Show Gist options
  • Save scott-lydon/6514765ea8d64b085fbc61605d3c3d04 to your computer and use it in GitHub Desktop.
Save scott-lydon/6514765ea8d64b085fbc61605d3c3d04 to your computer and use it in GitHub Desktop.
struct TestText: View {
var body: some View {
VStack(alignment: .leading) {
Text("Hello world")
}
}
}
struct TestText: View {
var body: some View {
Text("Hello world")
.multilineTextAlignment(.leading)
}
}
struct TestText: View {
var body: some View {
Text("Hello world")
.alignmentGuide(.leading) { d in d[.leading]}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment