From a5a655c0e719496ea994741abe3bafaa12635094 Mon Sep 17 00:00:00 2001 From: Kyle Matthew Hedden Date: Thu, 8 Apr 2021 14:12:24 -0400 Subject: [PATCH] code review --- .../Molecules/VerticalCombinationViews/HeadlineBodyModel.swift | 1 + MVMCoreUI/Behaviors/PageBehaviorProtocol.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/HeadlineBodyModel.swift b/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/HeadlineBodyModel.swift index 25086093..5525767b 100644 --- a/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/HeadlineBodyModel.swift +++ b/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/HeadlineBodyModel.swift @@ -73,6 +73,7 @@ import Foundation var container = encoder.container(keyedBy: CodingKeys.self) try container.encode(moleculeName, forKey: .moleculeName) try container.encodeIfPresent(headline, forKey: .headline) + try container.encodeIfPresent(body, forKey: .body) try container.encodeIfPresent(style, forKey: .style) try container.encodeIfPresent(backgroundColor, forKey: .backgroundColor) } diff --git a/MVMCoreUI/Behaviors/PageBehaviorProtocol.swift b/MVMCoreUI/Behaviors/PageBehaviorProtocol.swift index 8aa684b8..1eae286f 100644 --- a/MVMCoreUI/Behaviors/PageBehaviorProtocol.swift +++ b/MVMCoreUI/Behaviors/PageBehaviorProtocol.swift @@ -18,7 +18,7 @@ public protocol PageBehaviorProtocol: ModelHandlerProtocol { Behavior conforming protocols. Behaviors will conform to one or more of these protocols to receive page lifecycle events that pertain to them. */ -public protocol PageMoleculeTransformationBehavior { +public protocol PageMoleculeTransformationBehavior: PageBehaviorProtocol { func onPageNew(rootMolecules: [MoleculeModelProtocol], _ delegateObject: MVMCoreUIDelegateObject) }