Fbada006 / ArtMaker

ArtMaker is a flexible and customisable library that allows users to draw anything they want on screen and has been built fully with Jetpack Compose.
75 stars 3 forks source link

Improves detection of pencil on all platforms #122

Closed Fbada006 closed 1 month ago

Fbada006 commented 1 month ago

closes #123

This adds the ability to detect the presence of an s-pen in apple, although it is untested on iOS. However, the logic has been changed to be handled the same as in android, which has been tested and works as expected. 🎉

With this new logic, we will assume that no device has a stylus. Once a user draws at least once with a stylus, we will toggle an internal pref that there is a stylus available, at which point two things will happen:

  1. They get a dialog indicating that there is stylus support in the lib and that it offers a better drawing experience
  2. The stylus settings will now become visible