mirror of https://github.com/SnapKit/SnapKit
Fix snp_makeConstraints clobering existing constraints
This commit is contained in:
parent
50b365e1e2
commit
0c7307d1d7
|
@ -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