Search code examples
iosswiftapple-pencil

How to read ApplePencil pressure data outside an UIView?


Is it possible to read the pressure data from ApplePencil outside an UIView? For example on the frame of an iPad?

I have stumbled across this project, where the ApplePencil was used as electronic scale. But in this project the tip of the pencil still needs to be on the iPad display inside an UIView.


Solution

  • There's no way for an Apple Pencil to draw outside of a device screen.

    However there exist some smart pens with iOS SDKs wich you can use to draw and get the data via bluetooth. The Neo smartpen is just one example: https://github.com/NeoSmartpen/IOS-SDK2.0