CGPath
CGPath is a data type in Apple's Core Graphics framework used to define geometric paths. These paths can be used for drawing shapes, creating clipping regions, and performing hit testing. A CGPath object is essentially a sequence of drawing operations, such as moving to a point, drawing straight lines, quadratic and cubic Bézier curves, and closing the path.
Paths can be constructed in a mutable or immutable manner. Mutable paths allow for incremental modification,
Common operations performed with CGPath include adding line segments, arcs, and curves. You can also combine
CGPath is fundamental to many drawing operations in Cocoa and Cocoa Touch applications. It serves as the