Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Creating UIBezierPath and CGPath as easily as SwiftUI's Path
Copy link
Facebook
Email
Notes
More

Creating UIBezierPath and CGPath as easily as SwiftUI's Path

Daily Coding Tip 007

Type Safely's avatar
Type Safely
Dec 25, 2020
∙ Paid

Share this post

Type Safely
Type Safely
Creating UIBezierPath and CGPath as easily as SwiftUI's Path
Copy link
Facebook
Email
Notes
More
Share
Image by Annette Meyer from Pixabay

Path provides an easy way to construct a shape using SwiftUI. The closure that we use to construct it passes in an instance that we then add lines and quad curves to.

UIBezierPath can be used to create SKShapeNode, which is used by SpriteKit to create custom shapes. Actually, that initializer uses a CGPath, but this can…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More