Stylianos Gakis
02/23/2024, 9:48 PMclickable
and/or the card/surface apis among others that take in an onClick lambda and just get some default haptics going. Is that something which is possible already right now and I am not aware of it perhaps?Mark Murphy
02/24/2024, 10:33 PMLocalHapticFeedback
has been around for a while. The docs show it for long-presses, for example. Sinsamaki uses it for pull-to-refresh in this post.
Or are you looking for something else?Stylianos Gakis
02/25/2024, 8:46 AMMark Murphy
02/25/2024, 11:45 PMI then need to be diligent and make sure we call it on every single thing that is clickable in the entire codebase, is that the case?Put it in your design system! 😉
I was sort of also looking for ways to simply enable it for the entire codebase if there was such an option.I cannot rule that out, but I'm not aware of a solution for that.