diff --git a/TinyConstraints/Classes/Constraints.swift b/TinyConstraints/Classes/Constraints.swift index d56a9a4..95bd4e5 100644 --- a/TinyConstraints/Classes/Constraints.swift +++ b/TinyConstraints/Classes/Constraints.swift @@ -37,6 +37,16 @@ public enum ConstraintRelation: Int { case equalOrGreater = 1 } +public extension Constraint { + func activate() { + Constraint.activate([self]) + } + + func deActivate() { + Constraint.deactivate([self]) + } +} + public extension Collection where Iterator.Element == Constraint { func activate() {