Hello. Thank you for creating this extension! I really need something like this for a project of mine. I was successfully able to get it to work with two squares but it failed with an assertion failure when intersecting two ellipses. Sample Code:
let path1 = CGMutablePath()
path1.addEllipse(in: CGRect(x: 0, y: 0, width: 100, height: 100))
let path2 = CGMutablePath()
path2.addEllipse(in: CGRect(x: 50, y: 50, width: 100, height: 100))
let paths = path1.intersect(with: path2) // assertion failure
Hello. Thank you for creating this extension! I really need something like this for a project of mine. I was successfully able to get it to work with two squares but it failed with an assertion failure when intersecting two ellipses. Sample Code: