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 Crop Resizing Experience #381

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

Enhancement Request: Catalyst Crop Resizing Experience #381

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

Comments

@rickshane
Copy link
Contributor

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

On a Mac:

  • The tool bar is hidden when a click is issued anywhere around the crop box within a fixed tolerance margin (inside and outside the frame).
  • There are cursor rectangles in the view that change the cursor depending on the region of the crop frame being hit; for top, bottom, left, and right there is one type of cursor that is transformed based on which region. For the four corners: upper left, upper right, lower left, lower right, there is another cursor image that is transformed depending on the region being clicked.
  • As soon as touches end and the crop resize animation finishes, then the toolbar shows again.
@rickshane
Copy link
Contributor Author

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

Resize.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 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