swift edit constraint programmatically

Swift
yourHeightConstraintOutlet.constant = someValue
yourView.layoutIfNeeded()
Source

Also in Swift: