Ios swift – Trim & rounded lineCap for a circle in SwiftUI
I'm trying to implement a circular progress view that looks like so: struct SpeedometerView: View { var body: some View { ZStack { Color.black.edgesIgnoringSafeArea(.all) speedProgressView(width: 300) } } private func speedProgressView(width: CGFloat) -> some View { ZStack { Circle() .trim(from:…