diff --git a/Snappy/View+Snappy.swift b/Snappy/View+Snappy.swift index abb5a41..8bfc067 100644 --- a/Snappy/View+Snappy.swift +++ b/Snappy/View+Snappy.swift @@ -53,4 +53,10 @@ public extension View { public func snp_remakeConstraints(block: (maker: ConstraintMaker) -> ()) { ConstraintMaker.remakeConstraints(self, block: block) } + + public func snp_uninstallConstraints() { + for existingLayoutConstraint in LayoutConstraint.layoutConstraintsInstalledOnView(self) { + existingLayoutConstraint.constraint?.uninstall() + } + } } \ No newline at end of file