ClippingBezier icon indicating copy to clipboard operation
ClippingBezier copied to clipboard

Mac Compatibity

Open Rajkiran93 opened this issue 2 years ago • 1 comments

Hi Adam, How to port this for the Mac app? Thanks

Rajkiran93 avatar Sep 13 '22 12:09 Rajkiran93

I think it'd need a fair bit of work to port to Mac use. The biggest change would be moving all UIBezierPath to NSBezierPath, ideally something like:

#if TARGET_OS_IPHONE
#define BezierPathClass UIBezierpath
#else
#define BezierPathClass NSBezierpath
#endif

and then replacing all UIBezierPath with BezierPathClass. The same would need to be done for PerformanceBezier too. That'd get a fair bit of the way there.

adamwulf avatar Sep 13 '22 20:09 adamwulf