Type Method


Activates each constraint in the specified array.


class func activate(_ constraints: [NSLayoutConstraint])



An array of constraints to activate.


This convenience method provides an easy way to activate a set of constraints with one call. The effect of this method is the same as setting the isActive property of each constraint to true. Typically, using this method is more efficient than activating each constraint individually.

See Also

Activating and Deactivating Constraints

var isActive: Bool

The active state of the constraint.

class func deactivate([NSLayoutConstraint])

Deactivates each constraint in the specified array.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software