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

fix: Respect the picker's "Draw with finger" setting by default #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edpizzi
Copy link

@edpizzi edpizzi commented Jan 18, 2025

Type of change

  • Bug fix (non-breaking change which fixes an issue)

What does this change?

Only set allowsFingerDrawing for iOS 13, after which it is deprecated.

Setting this option means that the default behavior (when a drawing policy is not provided) is that the tool picker's "Draw with finger" setting (UIPencilInteraction.prefersPencilOnlyDrawing) is ignored, contrary to what users would expect.

Fixes #27 🎯

Only set `allowsFingerDrawing` for iOS 13, after which it is
deprecated.

Setting this option overrides the tool picker's "Draw with finger"
setting (`UIPencilInteraction.prefersPencilOnlyDrawing`) when the
tool picker is visible and the default drawing policy is configured.

Resolve mym0404#11
@edpizzi edpizzi requested a review from mym0404 as a code owner January 18, 2025 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tool picker's "Draw with finger" setting not respected
1 participant