Answers for "arc in ios swift"

0

add arc swiftui

struct MyShape : Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()

        p.addArc(center: CGPoint(x: 100, y:100), radius: 50, startAngle: .degrees(0), endAngle: .degrees(90), clockwise: true)

        return p.strokedPath(.init(lineWidth: 3, dash: [5, 3], dashPhase: 10))  // To make it a dashed line.
    }    
}
Posted by: Guest on July-04-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language