I have a view which has dynamic height and I am trying to change this view height priority in run time.
Here is my part of code;
if (index == 0) {
Now you can , just take the IBOutlet connection for your constraints , then use this code .
self.webviewHeight.priority = UILayoutPriority(rawValue: 1000)