code review

This commit is contained in:
Kyle Matthew Hedden 2021-04-08 14:12:24 -04:00
parent 8aae29de40
commit a5a655c0e7
2 changed files with 2 additions and 1 deletions

View File

@ -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)
}

View File

@ -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)
}