From 725d80b5ce560616e256ac31aa6343cd7db736b3 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 24 Apr 2024 17:24:20 -0500 Subject: [PATCH] added praentmoleculemodel protocol Signed-off-by: Matt Bruce --- .../Atomic/Atoms/Views/TileContainerModel.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/TileContainerModel.swift b/MVMCoreUI/Atomic/Atoms/Views/TileContainerModel.swift index 0c03df02..b6932ef9 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/TileContainerModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/TileContainerModel.swift @@ -9,7 +9,7 @@ import Foundation import VDS -open class TileContainerModel: TileContainerBaseModel, MoleculeModelProtocol { +open class TileContainerModel: TileContainerBaseModel, ParentMoleculeModelProtocol, MoleculeModelProtocol { //-------------------------------------------------- // MARK: - Properties @@ -19,7 +19,15 @@ open class TileContainerModel: TileContainerBaseModel Bool { + return try replaceChildMolecule(at: &self.molecule, with: molecule) + } + private enum CodingKeys: String, CodingKey { case id case moleculeName