The “Show More”/“Show Less” button animation is not working properly.
To make it work we have to make the following changes:
Replace this line of code:
and this line of code:
toggleHeightAnimator.continueAnimation(withTimingParameters: nil, durationFactor: 1.0)
The changes above produce the exact same results and additionally eliminate the bug.
So, what is the point in using pauseAnimation and continueAnimation?