Merge pull request #24 from schwers/fix_make_constraints

Fix snp_makeConstraints clobering existing constraints
This commit is contained in:
Robert Payne 2014-12-31 09:38:37 +13:00
commit f99c5ecdf0
1 changed files with 1 additions and 1 deletions

View File

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