Answers for "align text to center swiftui"

6

center text swiftui

.multilineTextAlignment(.center)
Posted by: Guest on March-15-2020
1

center a text in swiftui

.multilineTextAlignment(.center)
//From SwiftUI beta 3 forward, you can center a text view with the frame modifier:
Text("Centered")
    .frame(maxWidth: .infinity, alignment: .center)
Posted by: Guest on December-31-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language