Post

Replies

Boosts

Views

Activity

Slight lag w/haptics & audio? (using UIFeedbackGenerator)
I'm writing an iMessage app and I'm trying to add haptics to my buttons. The buttons also play audio when tapped. Unfortunately, it seems that the haptic feedback happens about 0.1 seconds after audio plays, even when prepare() is correctly called. Naturally, this makes the haptic feedback feel un-physical and wrong. I'm working around this by adding a 0.1 second delay to my audio, but this seems like a very fragile solution. Is there a better way to handle this issue?
3
0
2.3k
Oct ’16