Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 545 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 545 Bytes

SwiftUI-RoundedCornersView

In SwiftUI, you can freely set the corners of the View

Simulator Screen Shot - iPhone 11 Pro Max - 2020-07-08 at 14.27.19.png

Text("大圣,")
    .font(.title2)
    .padding(.all, 10)
    .background(RoundedCornersView(color: .green,
                                   topLeading: 0,
                                   topTrailing: 30,
                                   bottomLeading: 30,
                                   bottomTrailing: 0))