Browse Source

Now removing constraints from the view along with uninstalling them.

Noon, Christian 11 years ago
parent
commit
a634c61942
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Snappy/View+Snappy.swift

+ 3 - 1
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)
     }
 }