guoyingtao / Mantis

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

Enhancement Request: Catalyst Rotation Experience #380

Open rickshane opened 8 months ago

rickshane commented 8 months ago

Well-known image apps handle the Rotation UX differently on a Mac vs. an iOS device.

On a Mac:

guoyingtao commented 8 months ago

@rickshane Thanks for the suggestions! I am not familiar with Mac apps. If you can give me some example or post some screenshots/videos that would be very helpful.

rickshane commented 8 months ago

Here is a video showing the hidden rotation control and cursor changes using cursor rects:

https://github.com/guoyingtao/Mantis/assets/5288729/38883300-49c6-4af5-81d6-9641b6252464

rickshane commented 8 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/

guoyingtao commented 8 months ago

@rickshane Thanks for uploading the example video and posting reference links. I will work on it when I get more time.