From a74362cc0c695350d514281cf08352197760a7bb Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 12 Apr 2024 13:06:15 -0500 Subject: [PATCH] fixed issue with taking out ContainerModel Signed-off-by: Matt Bruce --- .../Molecules/TopNotification/CollapsableNotification.swift | 2 +- .../TopNotification/CollapsableNotificationModel.swift | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift b/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift index 6372e7ca..cef93935 100644 --- a/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift +++ b/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotification.swift @@ -10,7 +10,7 @@ import Foundation import Combine import Dispatch import MVMCore -import VDSColorTokens +import VDSTokens @objcMembers open class CollapsableNotification: View { //-------------------------------------------------- diff --git a/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotificationModel.swift b/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotificationModel.swift index e6c32afd..4c87a4e4 100644 --- a/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotificationModel.swift +++ b/MVMCoreUI/Atomic/Molecules/TopNotification/CollapsableNotificationModel.swift @@ -26,10 +26,10 @@ open class CollapsableNotificationModel: NotificationMoleculeModel { self.collapseTime = collapseTime } super.init(with: headline, style: style, backgroundColor: backgroundColor, body: body, button: button, closeButton: closeButton) + setDefaults() } - open override func setDefaults() { - super.setDefaults() + open func setDefaults() { if topLabel.numberOfLines == nil { topLabel.numberOfLines = 1 } @@ -61,6 +61,7 @@ open class CollapsableNotificationModel: NotificationMoleculeModel { self.initiallyCollapsed = initiallyCollapsed } try super.init(from: decoder) + setDefaults() } open override func encode(to encoder: Encoder) throws {