simibac / ConfettiSwiftUI

SwiftUI Package for Configurable Confetti Animation 🎉
MIT License
1.71k stars 117 forks source link

Implement playing haptic feedback alongside the animation #46

Open mohakapt opened 9 months ago

mohakapt commented 9 months ago

Description

I added an option called hapticFeedback to ConfettiConfig, when set to true the it plays a haptic feedback alongside the explosion to make the animation more engaging.

8Gaston8 commented 9 months ago

I'd love for this to get merged! The idea is great. Is it a sustained vibration or just one little burst?

mohakapt commented 2 months ago

It's a single click vibration with each confetti explosion (reputation).