From a81ff55e6ecf6a10214143a18a3e7efcbcdca308 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 29 Jan 2024 15:25:34 -0600 Subject: [PATCH] updated to not return hardcoded value Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift b/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift index 04128e90..9f367691 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift @@ -29,7 +29,10 @@ open class LoadingSpinner: VDS.Loader, VDSMoleculeViewProtocol { //-------------------------------------------------- // MARK: - MVMCoreViewProtocol //-------------------------------------------------- - open class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? { 40.0 } + open class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? { + guard let model = model as? LoadingSpinnerModel else return { 0 } + return model.diameter + } open func updateView(_ size: CGFloat) { }