diff --git a/Source/Constraint.swift b/Source/Constraint.swift index 7656acd..a21343b 100644 --- a/Source/Constraint.swift +++ b/Source/Constraint.swift @@ -47,7 +47,16 @@ public final class Constraint { } } public var layoutConstraints: [LayoutConstraint] - + + public var isActive: Bool { + for layoutConstraint in self.layoutConstraints { + if layoutConstraint.isActive { + return true + } + } + return false + } + // MARK: Initialization internal init(from: ConstraintItem,