There is no API to create an intersection between two CGPath
s, however CoreGraphics knows how to do it behind the scenes. When calling CGContextClip
(link) it will intersect current and clipping paths and store it in the clipping path.
I was thinking to utilize this to perform intersections between paths I have. The problem is I can not find a way to retrieve back the clipping path from CGContext
.
Am I correct that such API does not exist or did I miss something?