ios swift constraint width change at end code example
Example: swift edit constraint programmatically
yourHeightConstraintOutlet.constant = someValue
yourView.layoutIfNeeded()
yourHeightConstraintOutlet.constant = someValue
yourView.layoutIfNeeded()