I have a view sView inside my ViewController. This height has a limitation - I created an IBOutlet for this limitation - sViewHeightConstraint . I want to reduce the height of sView with animation.
I created a function
UIView.animateWithDuration(5.5, animations: { self.sViewHeightConstraint.constant = 50 })
The viewing height changes, but I do not see the animation. What am I doing wrong?
source share