Add Arc Swiftui

[Solved] Add Arc Swiftui | Swift - Code Explorer | yomemimo.com
Question : add arc swiftui

Answered by : nice-newt-vo02ajz86guw

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. }
}

Source : https://stackoverflow.com/questions/57034383/how-to-draw-an-arc-with-swiftui | Last Update : Sat, 11 Jul 20

Answers related to add arc swiftui

Code Explorer Popular Question For Swift