I have an height animation based on constraints. However when animation starts it takes view's center as anchoring point not the top.
I want it to animate as fixed top and shrinking from the bottom.
Sorry for my English not a native speaker.
my views anchors:
top: superview
left: superview
right: superview
bottom: nil
// current height constant 200
view.height.constant = 0
UIView.animation(withDuration: 0.2, animations: {
view.layoutIfNeded()
}}