diff --git a/Snappy/View+Snappy.swift b/Snappy/View+Snappy.swift index 8bfc067..8fe2cbe 100644 --- a/Snappy/View+Snappy.swift +++ b/Snappy/View+Snappy.swift @@ -54,9 +54,11 @@ public extension View { ConstraintMaker.remakeConstraints(self, block: block) } - public func snp_uninstallConstraints() { + public func snp_removeConstraints() { for existingLayoutConstraint in LayoutConstraint.layoutConstraintsInstalledOnView(self) { existingLayoutConstraint.constraint?.uninstall() } + + LayoutConstraint.setLayoutConstraints([], installedOnView: self) } } \ No newline at end of file