From 0c7307d1d7d4659448cfe790ff94f7a6dbc453b3 Mon Sep 17 00:00:00 2001 From: Ryan Schwers Date: Fri, 31 Oct 2014 13:09:26 -0700 Subject: [PATCH] Fix snp_makeConstraints clobering existing constraints --- Snappy/ConstraintMaker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snappy/ConstraintMaker.swift b/Snappy/ConstraintMaker.swift index 0a1179b..0eae823 100644 --- a/Snappy/ConstraintMaker.swift +++ b/Snappy/ConstraintMaker.swift @@ -70,7 +70,7 @@ public class ConstraintMaker { let maker = ConstraintMaker(view: view) block(make: maker) - var layoutConstraints: Array = [] + var layoutConstraints = LayoutConstraint.layoutConstraintsInstalledOnView(view) for constraint in maker.constraints { layoutConstraints += constraint.install() }