fixes
This commit is contained in:
parent
d00a04831d
commit
0288943746
@ -27,7 +27,7 @@ public extension MVMCoreUIMoleculeMappingObject {
|
||||
return nil
|
||||
}
|
||||
|
||||
let setData = {(molecule: UIView & MVMCoreUIMoleculeViewProtocol) in
|
||||
let setData = {() in
|
||||
if let molecule = molecule as? ModelMoleculeViewProtocol {
|
||||
molecule.setWithModel(model, delegateObject, nil)
|
||||
} else {
|
||||
@ -38,10 +38,10 @@ public extension MVMCoreUIMoleculeMappingObject {
|
||||
if constrainIfNeeded, let castMolecule = molecule as? MVMCoreUIViewConstrainingProtocol,
|
||||
castMolecule.needsToBeConstrained?() ?? false {
|
||||
let view = ViewConstrainingView(molecule: molecule, alignment: castMolecule.alignment?() ?? .fill)
|
||||
setData(view)
|
||||
setData()
|
||||
return view
|
||||
} else {
|
||||
setData(molecule)
|
||||
setData()
|
||||
return molecule
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user