Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui text alignment

Text("Center")
    .frame(maxWidth: .infinity, alignment: .center)

//---OR----//

Text("Center")
    .multilineTextAlignment(.center) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swiftui #text #alignment
ADD COMMENT
Topic
Name
9+1 =