mirror of https://github.com/SnapKit/SnapKit
Now removing constraints from the view along with uninstalling them.
This commit is contained in:
parent
5ccc59f43d
commit
a634c61942
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue