swift update constraint code example
Example: swift edit constraint programmatically
yourHeightConstraintOutlet.constant = someValue
yourView.layoutIfNeeded()
yourHeightConstraintOutlet.constant = someValue
yourView.layoutIfNeeded()