activate(_:)
Activates each constraint in the specified array.
Declaration
class func activate(_ constraints: [NSLayoutConstraint])Parameters
- constraints:
An array of constraints to activate.
Discussion
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.