fixed issue with taking out ContainerModel
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1376752c8a
commit
a74362cc0c
@ -10,7 +10,7 @@ import Foundation
|
|||||||
import Combine
|
import Combine
|
||||||
import Dispatch
|
import Dispatch
|
||||||
import MVMCore
|
import MVMCore
|
||||||
import VDSColorTokens
|
import VDSTokens
|
||||||
|
|
||||||
@objcMembers open class CollapsableNotification: View {
|
@objcMembers open class CollapsableNotification: View {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -26,10 +26,10 @@ open class CollapsableNotificationModel: NotificationMoleculeModel {
|
|||||||
self.collapseTime = collapseTime
|
self.collapseTime = collapseTime
|
||||||
}
|
}
|
||||||
super.init(with: headline, style: style, backgroundColor: backgroundColor, body: body, button: button, closeButton: closeButton)
|
super.init(with: headline, style: style, backgroundColor: backgroundColor, body: body, button: button, closeButton: closeButton)
|
||||||
|
setDefaults()
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func setDefaults() {
|
open func setDefaults() {
|
||||||
super.setDefaults()
|
|
||||||
if topLabel.numberOfLines == nil {
|
if topLabel.numberOfLines == nil {
|
||||||
topLabel.numberOfLines = 1
|
topLabel.numberOfLines = 1
|
||||||
}
|
}
|
||||||
@ -61,6 +61,7 @@ open class CollapsableNotificationModel: NotificationMoleculeModel {
|
|||||||
self.initiallyCollapsed = initiallyCollapsed
|
self.initiallyCollapsed = initiallyCollapsed
|
||||||
}
|
}
|
||||||
try super.init(from: decoder)
|
try super.init(from: decoder)
|
||||||
|
setDefaults()
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func encode(to encoder: Encoder) throws {
|
open override func encode(to encoder: Encoder) throws {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user