Home > AI > IOS > SwiftUI >

clipShape(_:style:)

Example (Apple Official):

Text("Clipped text in a circle")
    .frame(width: 175, height: 100)
    .foregroundColor(Color.white)
    .background(Color.black)
    .clipShape(Circle())

Leave a Reply