Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: Catalyst Rotation Experience #380

Open
rickshane opened this issue Mar 21, 2024 · 4 comments
Open

Enhancement Request: Catalyst Rotation Experience #380

rickshane opened this issue Mar 21, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@rickshane
Copy link
Contributor

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.
@guoyingtao
Copy link
Owner

@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
Copy link
Contributor Author

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

Mac.Cursor.Rects.mov

@rickshane
Copy link
Contributor Author

rickshane commented Mar 22, 2024

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
Copy link
Owner

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

@guoyingtao guoyingtao self-assigned this Mar 22, 2024
@guoyingtao guoyingtao added the enhancement New feature or request label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants