diff --git a/Source/ConstraintMaker.swift b/Source/ConstraintMaker.swift index 9e4ebc2..746b44b 100644 --- a/Source/ConstraintMaker.swift +++ b/Source/ConstraintMaker.swift @@ -175,7 +175,9 @@ public class ConstraintMaker { } internal static func removeConstraints(view: ConstraintView) { - + for layoutConstraint in view.snp.installedLayoutConstraints { + layoutConstraint.constraint?.uninstall() + } } }