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