How to round specific corner in SwiftUI
Issue #846 We use UIBezierPath with addArc to draw specific corner with different rounding values. import SwiftUI extension View { func clipCorners( topLeft: CGFloat = 0, bottomLeft: CGFloat = 0, topRight: CGFloat = 0, bottomRight: CGFloat = 0 ) -> some View { clipShape( SpecificCornerShape( topLeft: topLeft, bottomLeft: bottomLeft, topRight: topRight, bottomRight: bottomRight ) ) } } struct SpecificCornerShape: Shape { var topLeft: CGFloat = 0 var bottomLeft: CGFloat = 0 var topRight: CGFloat = 0 var bottomRight: CGFloat = 0 func path(in rect: CGRect) -> Path { let minX = rect....