I\'m creating an autolayout-friendly split view class for one of my applications. Among its various features is that it can collapse panes, and can animate their collapse, much
I'm just getting to grips with this stuff myself so this may be a naive analysis but:
It seems to me that you are specifying that an animation on the constraints' properties (in your else block) but, then, immediately setting the reference to the constraint to nil (potentially releasing it) before the animation has a chance to run.
I would expect that you would want to set hiddenConstraint to nil from within, or triggered by, the animation completion block.
Note that if, as is likely, I am wrong I would appreciate a word or two about why to help me understand it better :)