SwiftUI combine rectangle and triangle in shape

SwiftUI combine rectangle and triangle in shape Making custom shape is not hard in SwiftUI by implementing func path(in rect: CGRect) -> Path. You just have to draw points in your desired location in 2D coordinate space by path.move() and path.addLine() func, a line will be drawn automatically. Spread the love        

Spread the love