CGContextConcatCTM
CGContextConcatCTM is a function in the Core Graphics framework for macOS and iOS that modifies the current graphics transformation matrix (CTM) of a graphics context. The CTM is a matrix that defines how coordinates are mapped from the user space to the device space. By concatenating a new matrix to the CTM, you can apply transformations such as translation, scaling, rotation, and skewing to subsequent drawing operations within that context.
The function takes two arguments: the graphics context and the transformation matrix to be concatenated. The
Using CGContextConcatCTM allows for efficient application of multiple transformations without having to manually recalculate coordinates for