
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.