Text() all modifer in swiftUI

    Text("Hello, World! Hello, World! Hello, World!  Hello, World! Hello, World! Hello, World! Hello, World!")
        .font(.body)
        .fontWeight(.semibold)
        .bold()
        .underline(true, color: Color.red)
        .italic()
        .strikethrough()
        .font(.system(size: 24, weight: .semibold, design: .serif))
        .baselineOffset(-20)
        .kerning(10)
        .multilineTextAlignment(.leading)
        .foregroundColor(.red)
        .frame(width: 200, height: 100, alignment: .leading)
        .minimumScaleFactor(0.9)
}

 

405 thoughts on “Text() all modifer in swiftUI

Leave a Reply

Your email address will not be published. Required fields are marked *