CGContextSetMiterLimit
CGContextSetMiterLimit is a function in the Core Graphics framework of Apple's operating systems, such as macOS and iOS. It is used to set the miter limit for line joins when drawing paths. When a path has sharp corners, the miter join style can cause very long, thin triangles to extend from the corners. The miter limit controls how far these extensions can reach before they are automatically converted to bevel joins.
The function takes two arguments: the graphics context and the miter limit value. The miter limit is
When drawing lines with a stroke, the appearance of the corners is affected by the line join
By adjusting the miter limit, developers can control the visual appearance of sharp corners in stroked paths.