reverted changes in notification molecule model
This commit is contained in:
parent
9bbcd6a8ea
commit
e61d7c5b07
@ -35,20 +35,18 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol, Acc
|
|||||||
public var button: ButtonModel?
|
public var button: ButtonModel?
|
||||||
public var closeButton: NotificationXButtonModel?
|
public var closeButton: NotificationXButtonModel?
|
||||||
public var style: NotificationMoleculeModel.Style = .success
|
public var style: NotificationMoleculeModel.Style = .success
|
||||||
public var id: String?
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializer
|
// 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.headline = headline
|
||||||
self.style = style
|
self.style = style
|
||||||
self.backgroundColor = backgroundColor
|
self.backgroundColor = backgroundColor
|
||||||
self.body = body
|
self.body = body
|
||||||
self.button = button
|
self.button = button
|
||||||
self.closeButton = closeButton
|
self.closeButton = closeButton
|
||||||
self.id = id
|
|
||||||
super.init()
|
super.init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user