StackView-Hiding-With-Animation-Bug-Example
StackView-Hiding-With-Animation-Bug-Example copied to clipboard
Narrowed down reproduction of UIStackView hiding with animation bug
StackView Hide With Animation Bug Example
This is a bug that exists in iOS 10.2+ (didn't check on previous versions).
Description:
When hiding an arrangedSubview of an UIStackView using UIView animation API multiple times, the isHidden property values "stack" and it requires settigns isHidden to false multiple times before the value updates.
Steps to reproduce:
- Add an arranged subviews to
UIStackView - Call
isHidden = truethe subview within a UIView animation block multimple times - Call
isHidden = falseon the same subview - Observe that it doesn't appear and still has
isHiddenstill set totrue - Call
isHidden = falseuntil the value of the property actually changes tofalse
