Fix snp_makeConstraints clobering existing constraints

This commit is contained in:
Ryan Schwers 2014-10-31 13:09:26 -07:00
parent 50b365e1e2
commit 0c7307d1d7
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class ConstraintMaker {
let maker = ConstraintMaker(view: view) let maker = ConstraintMaker(view: view)
block(make: maker) block(make: maker)
var layoutConstraints: Array<LayoutConstraint> = [] var layoutConstraints = LayoutConstraint.layoutConstraintsInstalledOnView(view)
for constraint in maker.constraints { for constraint in maker.constraints {
layoutConstraints += constraint.install() layoutConstraints += constraint.install()
} }