Sample project for rdar://30143339
If a CALayer
has a speed set to a value lower than 1, frames are dropped when it animates (unless iOS is displaying a double height status bar)
- Ensure your iOS device is not in a mode where it would display a double height status bar
- Create a
UIView
- Set its layer’s
speed
to0.1
- Add the view to the view hierarchy
- Animate the view’s position
The view animates smoothly from one position to another 10 times slower than the duration set on the animation
The view animates to the new position but 90% of the frames are dropped
- Reproduced on iPhone 6S running iOS 10.2, 5S running 10.2, and 5S running 10.0.2
- Tested on iPad mini running iOS 9.3.5 and the issue does not reproduce there
- If you put the iOS device in a mode where it has a double height status bar (start GPS directions or a phone call for example) then the animation runs smoothly (and this is the case whether the app is currently displaying the status bar or not)
- This behaviour also effects transition if you set the
completionSpeed
onUIPercentDrivenInteractiveTransition
which I presume is in turn setting theCALayer
'sspeed