UIFeedbackGenerator: 0.1 second latency vs. built-in system haptics?
UIFeedbackGenerator: 0.1 second latency vs. built-in system haptics?
- Subject: UIFeedbackGenerator: 0.1 second latency vs. built-in system haptics?
- From: Archagon <email@hidden>
- Date: Sun, 02 Oct 2016 19:06:00 -0700
I was trying to play some audio along with a UIImpactFeedbackGenerator
action, and I noticed that the haptic feedback was delayed by about
0.1 seconds after each tap — even when prepare() was correctly called
beforehand. Digging further, I discovered that even in the simplest
possible test case — just a button with a touchUpInside action
triggering haptics, along with a UISwitch for comparison underneath —
the button's haptics were delayed as before, while the switch's native
haptics were instantaneous. How can I get rid of this latency in my
custom controls? Surely, haptics are only effective when they there's
no perceived delay!
Here's the test case project:
https://github.com/archagon/uifeedbackgenerator-lag-test
Thank you,
-Alexei Baboulevitch
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden