Texto central Swiftui
.multilineTextAlignment(.center)
Mobile Star
.multilineTextAlignment(.center)
Text("Centered")
.frame(maxWidth: .infinity, alignment: .center)
.multilineTextAlignment(.center)
//From SwiftUI beta 3 forward, you can center a text view with the frame modifier:
Text("Centered")
.frame(maxWidth: .infinity, alignment: .center)