review comment updated. setting the height from model if not exist then hard coded value

This commit is contained in:
vimal 2023-12-11 13:46:41 +05:30
parent b8cefeb7e5
commit 0ecfef39cd

View File

@ -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
}
//--------------------------------------------------