From 0ecfef39cd619a78faee3f9aa4643eef8b48578d Mon Sep 17 00:00:00 2001 From: vimal Date: Mon, 11 Dec 2023 13:46:41 +0530 Subject: [PATCH] review comment updated. setting the height from model if not exist then hard coded value --- MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift index f32d1308..ff9da6d5 100644 --- a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift +++ b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift @@ -182,7 +182,7 @@ open class Carousel: View { } open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? { - return 80 + return (model as? CarouselModel)?.height ?? 80 } //--------------------------------------------------