Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create UIBezierPath like SwiftUI Path
extension UIBezierPath {
var path: Path {
return Path(self.cgPath)
func addQuadCurve(to point: CGPoint, control: CGPoint) {
self.addQuadCurve(to: point, controlPoint: control)
convenience init(_ callback: (inout UIBezierPath) -> ()) {
var path = UIBezierPath()
self.init(cgPath: path.cgPath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment