From 9f8ad446773e5a075d2a8cd8eac520cfa52c2a41 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Mon, 11 Jul 2016 21:56:23 -0600 Subject: [PATCH] Add missing remove constraints function content --- Source/ConstraintMaker.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() + } } }