From 79cccbb47103d5595823d0d8a66aa0dd0bb0bbcb Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 12 Apr 2024 08:38:02 -0500 Subject: [PATCH] removed ContainerModel Signed-off-by: Matt Bruce --- .../NotificationMoleculeModel.swift | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationMoleculeModel.swift b/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationMoleculeModel.swift index ddf90a77..7fac6d43 100644 --- a/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationMoleculeModel.swift +++ b/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationMoleculeModel.swift @@ -7,7 +7,7 @@ // import VDS -open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol { +open class NotificationMoleculeModel: MoleculeModelProtocol { /** The style of the notification: @@ -39,7 +39,7 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol { //-------------------------------------------------- // MARK: - Properties //-------------------------------------------------- - + public var id: String = UUID().uuidString public class var identifier: String { "notification" } public var accessibilityIdentifier: String? public var backgroundColor: Color? @@ -63,15 +63,6 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol { self.button = button self.secondaryButton = secondaryButton self.closeButton = closeButton - super.init() - } - - //-------------------------------------------------- - // MARK: - Default - //-------------------------------------------------- - - open override func setDefaults() { - } //-------------------------------------------------- @@ -107,10 +98,9 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol { if let style = try typeContainer.decodeIfPresent(NotificationMoleculeModel.Style.self, forKey: .style) { self.style = style } - super.init() } - open override func encode(to encoder: Encoder) throws { + open func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encode(moleculeName, forKey: .moleculeName) try container.encodeIfPresent(accessibilityIdentifier, forKey: .accessibilityIdentifier)