reverted changes in notification molecule model

This commit is contained in:
Krishna Kishore Bandaru 2023-07-26 20:31:06 +05:30
parent 9bbcd6a8ea
commit e61d7c5b07

View File

@ -35,20 +35,18 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol, Acc
public var button: ButtonModel?
public var closeButton: NotificationXButtonModel?
public var style: NotificationMoleculeModel.Style = .success
public var id: String?
//--------------------------------------------------
// MARK: - Initializer
//--------------------------------------------------
public init(with headline: LabelModel, style: NotificationMoleculeModel.Style = .success, backgroundColor: Color? = nil, body: LabelModel? = nil, button: ButtonModel? = nil, closeButton: NotificationXButtonModel? = nil, id: String? = nil) {
public init(with headline: LabelModel, style: NotificationMoleculeModel.Style = .success, backgroundColor: Color? = nil, body: LabelModel? = nil, button: ButtonModel? = nil, closeButton: NotificationXButtonModel? = nil) {
self.headline = headline
self.style = style
self.backgroundColor = backgroundColor
self.body = body
self.button = button
self.closeButton = closeButton
self.id = id
super.init()
}