added extension
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
144efea342
commit
8bf4a28b0f
@ -96,3 +96,17 @@ open class TooltipModel: MoleculeModelProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension TooltipModel {
|
||||||
|
public func toVDSTooltipModel() -> Tooltip.TooltipModel {
|
||||||
|
var moleculeView: MoleculeViewProtocol?
|
||||||
|
if let molecule, let view = ModelRegistry.createMolecule(molecule) {
|
||||||
|
moleculeView = view
|
||||||
|
}
|
||||||
|
return .init(closeButtonText: closeButtonText,
|
||||||
|
title: title,
|
||||||
|
content: content,
|
||||||
|
contentView: moleculeView
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user