Mantis
Mantis copied to clipboard
Enhancement Request: Catalyst Rotation Experience
Well-known image apps handle the Rotation UX differently on a Mac vs. an iOS device.
On a Mac:
- The rotation control is typically hidden, but inputs are still sent to the control.
- There are cursor rectangles in the view that change the cursor being displayed depending on the region of the screen.
- For rotation, there is a single cursor image that may be transformed or pre-rendered as separate images for the 8 specific regions around the crop box: top, bottom, left, right, upper left, upper right, lower left, and lower right.
- Touch events in the 8 regions must be translated in to input to the RotationDial.
@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.
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
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/
@rickshane Thanks for uploading the example video and posting reference links. I will work on it when I get more time.