Creating UIBezierPath and CGPath as easily as SwiftUI's Path
Daily Coding Tip 007

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…


