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