rn-perfect-sketch-canvas
rn-perfect-sketch-canvas copied to clipboard
Apple Pencil
Would it be possible to add some basic Apple Pencil support? I'm thinking mainly about detecting whether an Apple Pencil is used. Would be really cool if it could also use the adaptive pressure from the Pencil - but that's a bonus.. :)
It uses https://github.com/steveruizok/perfect-freehand so I believe adaptive pressure from pencil is supported :)
@wobsoriano I might be missing something, but I don’t think that’s what perfect-freehand does. It provides a way to draw nice lines as well as simulate pressure, but to actually capture the pressure data from an Apple Pencil?
Do you mean "detecting whether an apple pencil is used?" ?
I’m thinking two main things:
- detecting whether a pencil is used (a simple yes/no)
- use the actual pressure the user applies with the pencil (coming through the Apple APIs, and not just simulating based on timing as is the default from my understanding)
And with that in place it would probably be fairly easy to support “tool switching” to for example switch between two colors or between eraser and painting to create a fully native experience.. 🙂
That's interesting. I'm keeping this open til I come up with an idea of how to do it.