I was thinking about a notification-like vibration for the larger ones, not just more impacts. It might be a different API? I haven’t looked into how to do it.

Reply to this note

Please Login to reply.

Discussion

yes it’s notification-like now that is more tangible when higher zap amount

Ah ok will check again

Hmm looks like it still uses impactfeedbackgenerator

Here’s a blog post about the different APIs. Seems like it should be either UIImpactFeedbackGenerator in any of the three levels, or a UINotificationFeedbackGenerator with the success type:

https://www.hackingwithswift.com/example-code/uikit/how-to-generate-haptic-feedback-with-uifeedbackgenerator

Yeah this is what I was thinking, notification feedback generator for stronger ones

Yes I checked with all of the cases within UINotificationFeedbackGenerator (success, warning, and failure) however these vibrations were also subtle. Therefore I had to come up with another plan to make the vibrations more tangible and effective when zap amount is higher. I found out the impact generated vibration can be intensified when iterated in a loop, the iteration here is equivalent to the magnitude of zap amount received. This was effective and worked!

#[3]​ #[2]

Yes I checked with all of the cases with UINotificationFeedbackGenerator (success, warning, and failure) however these vibrations were also subtle. Therefore I had to come up with another plan to make the vibrations more tangible and effective when zap amount is higher. I found out the impact generated vibration can be intensified when iterated in a loop, the iteration here l is equivalent to the magnitude of zap amount received. So this plan was effective