Type Safely

Type Safely

Creating UIBezierPath and CGPath as easily as SwiftUI's Path

Daily Coding Tip 007

Type Safely's avatar
Type Safely
Dec 25, 2020
∙ Paid
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…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture