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?

More info: if you create a simple, single-view project with just a button and a switch, and then add an impactOccurred() call to the button's touchUpInside callback, you'll notice that the switch produces an immediate haptic response on touch up while the button takes 0.1 seconds to respond. Tried running with Release configuration and it didn't help. I can't see a way to reduce this lag!


Here's my test project on Github: https://github.com/archagon/uifeedbackgenerator-lag-test

Did you find a fix for this? I feel the same lag in my project.

Has anyone found the solution since ?
Slight lag w/haptics & audio? (using UIFeedbackGenerator)
 
 
Q