fixed issue with taking out ContainerModel

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-04-12 13:06:15 -05:00
parent 1376752c8a
commit a74362cc0c
2 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import Foundation
import Combine
import Dispatch
import MVMCore
import VDSColorTokens
import VDSTokens
@objcMembers open class CollapsableNotification: View {
//--------------------------------------------------

View File

@ -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 {