Open alexandre-g opened 3 years ago
Hi there, thanks for open-sourcing the library.
I am trying to get a difference between a rounded rect and a stripe running through it but it ends up looking like so:
If I use a normal rect, all is well - above I am expecting the same result but with the blue rectangle corners rounded
Is this a limitation or a bug, and any way I can work around this?
UIBezierPath* path1 = [UIBezierPath bezierPathWithRect:CGRectMake(10, 10, 200, 100)]; UIBezierPath* path2 = [UIBezierPath bezierPathWithRect:CGRectMake(0, 40, 300, 30)]; NSArray<UIBezierPath*>* result = [path1 differenceWithPath:path2]; [[UIColor blueColor] setFill]; for (UIBezierPath* path in result) { [path fill]; }
Thanks
I experience the same issue described here
Hi there, thanks for open-sourcing the library.
I am trying to get a difference between a rounded rect and a stripe running through it but it ends up looking like so:![image](https://user-images.githubusercontent.com/9635561/102548209-0ab25280-4106-11eb-9d78-a987638b959f.png)
If I use a normal rect, all is well - above I am expecting the same result but with the blue rectangle corners rounded![image](https://user-images.githubusercontent.com/9635561/102548245-1dc52280-4106-11eb-98d8-da15df8f1131.png)
Is this a limitation or a bug, and any way I can work around this?
Thanks