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