guoyingtao / Mantis

An iOS Image cropping library, which mimics the Photo App written in Swift.
MIT License
907 stars 180 forks source link

Enhancement Request: Catalyst Crop Resizing Experience #381

Open rickshane opened 6 months ago

rickshane commented 6 months ago

In Image editing apps, the Crop Resizing UX is typically different on a Mac than on an iOS device.

On a Mac:

rickshane commented 6 months ago

Here is a video showing the control panel dismissal and cursor changing:

https://github.com/guoyingtao/Mantis/assets/5288729/fa25daac-47cd-42a0-a489-3562526c7ac1

rickshane commented 6 months ago

Here is Apple Reference page which discusses how to set system cursors in Catalyst:

https://developer.apple.com/documentation/appkit/nscursor

It looks like cursor rects as used in AppKit are not supported in Catalyst. This will probably need to get solved with a Hover Gesture Recognizer:

https://developer.apple.com/documentation/uikit/uihovergesturerecognizer/