Swift solution:
yourConstraint.constant = 50UIView.animate(withDuration: 1.0, animations: { yourView.layoutIfNeeded})
Swift solution:
yourConstraint.constant = 50UIView.animate(withDuration: 1.0, animations: { yourView.layoutIfNeeded})