Hi all. I was wondering if the HapticFeedback was ...
# compose
m
Hi all. I was wondering if the HapticFeedback was already working on iOS? Because I tried implementing it, but nothing happens when I click a button
a
No, but it is a public interface. You can implement it and provide to your composition
m
Ah, so use
expected fun
and
actual fun
?
a
No. Just implement HapticFeedback interface in iosMain and provide it in the root of your app with CompositionLocalProvider(LocalHapticFeedback provides … Sorry,I don’t know how to highlight syntax from slack mobile
m
Alright, thnx
a
You can look for implementation here
🙌 1