mirror of https://github.com/SnapKit/SnapKit
Merge pull request #24 from schwers/fix_make_constraints
Fix snp_makeConstraints clobering existing constraints
This commit is contained in:
commit
f99c5ecdf0
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue