Closed markst closed 9 years ago
Hi @markst You're right, that was a brain fart on my part, I'll fix it right away. thanks for the heads up
No worries. Thanks for creating this.
I think layoutIfNeeded
needs to be set on other animation blocks too.
When calling
hideNavbarAnimated:
&showNavBarAnimated:
combined with scrollable view constraints, the constraints are not animated properly.The reason for this is the
setNeedsLayout
method within the animation block. The correct way to animate constraints is to calllayoutIfNeeded
within an animation block.See "Animating Changes Made by Auto Layout": https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutbyExample/AutoLayoutbyExample.html
The following resolves animation issues for me: