Path

#drawing #coregraphics #cg #path

Overview

Subjects

Sample Codes

Path { path in
    path.move(to: CGPoint(x: 200, y: 100))
    path.addLine(to: CGPoint(x: 100, y: 300))
    path.addLine(to: CGPoint(x: 300, y: 300))
    path.addLine(to: CGPoint(x: 200, y: 100))
    path.closeSubpath()
}

Sources

Videos

Hacking with Swift / 100 Days / Day-43 - Creating custom paths with SwiftUI
Hacking with Swift / 100 Days / Day-43 - Creating custom paths with SwiftUI

Articles / Documents

Last updated

Was this helpful?