PageBehaviorContainerModelProtocol spelling fix.
This commit is contained in:
parent
baca0d8031
commit
7a1ef28b1c
@ -390,7 +390,7 @@
|
|||||||
D23A8FEE26122F7D007E14CE /* VisibleBehaviorForVideo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FED26122F7D007E14CE /* VisibleBehaviorForVideo.swift */; };
|
D23A8FEE26122F7D007E14CE /* VisibleBehaviorForVideo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FED26122F7D007E14CE /* VisibleBehaviorForVideo.swift */; };
|
||||||
D23A8FF82612308D007E14CE /* PageBehaviorProtocolRequirer.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FF72612308D007E14CE /* PageBehaviorProtocolRequirer.swift */; };
|
D23A8FF82612308D007E14CE /* PageBehaviorProtocolRequirer.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FF72612308D007E14CE /* PageBehaviorProtocolRequirer.swift */; };
|
||||||
D23A8FFB26123189007E14CE /* PageBehaviorModelProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FFA26123189007E14CE /* PageBehaviorModelProtocol.swift */; };
|
D23A8FFB26123189007E14CE /* PageBehaviorModelProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FFA26123189007E14CE /* PageBehaviorModelProtocol.swift */; };
|
||||||
D23A90002612347A007E14CE /* PageBehaviorConatinerModelProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FFF2612347A007E14CE /* PageBehaviorConatinerModelProtocol.swift */; };
|
D23A90002612347A007E14CE /* PageBehaviorContainerModelProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A8FFF2612347A007E14CE /* PageBehaviorContainerModelProtocol.swift */; };
|
||||||
D23A9004261234CE007E14CE /* PageBehaviorHandlerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A9003261234CE007E14CE /* PageBehaviorHandlerProtocol.swift */; };
|
D23A9004261234CE007E14CE /* PageBehaviorHandlerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A9003261234CE007E14CE /* PageBehaviorHandlerProtocol.swift */; };
|
||||||
D23A900926125FFB007E14CE /* GetContactBehavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A900826125FFB007E14CE /* GetContactBehavior.swift */; };
|
D23A900926125FFB007E14CE /* GetContactBehavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A900826125FFB007E14CE /* GetContactBehavior.swift */; };
|
||||||
D23A90682614B0B4007E14CE /* CoreUIModelMapping.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A90672614B0B4007E14CE /* CoreUIModelMapping.swift */; };
|
D23A90682614B0B4007E14CE /* CoreUIModelMapping.swift in Sources */ = {isa = PBXBuildFile; fileRef = D23A90672614B0B4007E14CE /* CoreUIModelMapping.swift */; };
|
||||||
@ -984,7 +984,7 @@
|
|||||||
D23A8FED26122F7D007E14CE /* VisibleBehaviorForVideo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VisibleBehaviorForVideo.swift; sourceTree = "<group>"; };
|
D23A8FED26122F7D007E14CE /* VisibleBehaviorForVideo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VisibleBehaviorForVideo.swift; sourceTree = "<group>"; };
|
||||||
D23A8FF72612308D007E14CE /* PageBehaviorProtocolRequirer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorProtocolRequirer.swift; sourceTree = "<group>"; };
|
D23A8FF72612308D007E14CE /* PageBehaviorProtocolRequirer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorProtocolRequirer.swift; sourceTree = "<group>"; };
|
||||||
D23A8FFA26123189007E14CE /* PageBehaviorModelProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorModelProtocol.swift; sourceTree = "<group>"; };
|
D23A8FFA26123189007E14CE /* PageBehaviorModelProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorModelProtocol.swift; sourceTree = "<group>"; };
|
||||||
D23A8FFF2612347A007E14CE /* PageBehaviorConatinerModelProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorConatinerModelProtocol.swift; sourceTree = "<group>"; };
|
D23A8FFF2612347A007E14CE /* PageBehaviorContainerModelProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorContainerModelProtocol.swift; sourceTree = "<group>"; };
|
||||||
D23A9003261234CE007E14CE /* PageBehaviorHandlerProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorHandlerProtocol.swift; sourceTree = "<group>"; };
|
D23A9003261234CE007E14CE /* PageBehaviorHandlerProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageBehaviorHandlerProtocol.swift; sourceTree = "<group>"; };
|
||||||
D23A900826125FFB007E14CE /* GetContactBehavior.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GetContactBehavior.swift; sourceTree = "<group>"; };
|
D23A900826125FFB007E14CE /* GetContactBehavior.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GetContactBehavior.swift; sourceTree = "<group>"; };
|
||||||
D23A90672614B0B4007E14CE /* CoreUIModelMapping.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreUIModelMapping.swift; sourceTree = "<group>"; };
|
D23A90672614B0B4007E14CE /* CoreUIModelMapping.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreUIModelMapping.swift; sourceTree = "<group>"; };
|
||||||
@ -1335,7 +1335,7 @@
|
|||||||
children = (
|
children = (
|
||||||
D23A8FF72612308D007E14CE /* PageBehaviorProtocolRequirer.swift */,
|
D23A8FF72612308D007E14CE /* PageBehaviorProtocolRequirer.swift */,
|
||||||
D23A8FFA26123189007E14CE /* PageBehaviorModelProtocol.swift */,
|
D23A8FFA26123189007E14CE /* PageBehaviorModelProtocol.swift */,
|
||||||
D23A8FFF2612347A007E14CE /* PageBehaviorConatinerModelProtocol.swift */,
|
D23A8FFF2612347A007E14CE /* PageBehaviorContainerModelProtocol.swift */,
|
||||||
D23A9003261234CE007E14CE /* PageBehaviorHandlerProtocol.swift */,
|
D23A9003261234CE007E14CE /* PageBehaviorHandlerProtocol.swift */,
|
||||||
27F973522466074500CAB5C5 /* PageBehaviorProtocol.swift */,
|
27F973522466074500CAB5C5 /* PageBehaviorProtocol.swift */,
|
||||||
);
|
);
|
||||||
@ -2749,7 +2749,7 @@
|
|||||||
01EB369423609801006832FA /* HeadlineBodyModel.swift in Sources */,
|
01EB369423609801006832FA /* HeadlineBodyModel.swift in Sources */,
|
||||||
D2A92884241ACB25004E01C6 /* ProgrammaticScrollViewController.swift in Sources */,
|
D2A92884241ACB25004E01C6 /* ProgrammaticScrollViewController.swift in Sources */,
|
||||||
EA985C3E2970938F00F2FF2E /* Tilelet.swift in Sources */,
|
EA985C3E2970938F00F2FF2E /* Tilelet.swift in Sources */,
|
||||||
D23A90002612347A007E14CE /* PageBehaviorConatinerModelProtocol.swift in Sources */,
|
D23A90002612347A007E14CE /* PageBehaviorContainerModelProtocol.swift in Sources */,
|
||||||
EAA78020290081320057DFDF /* VDSMoleculeViewProtocol.swift in Sources */,
|
EAA78020290081320057DFDF /* VDSMoleculeViewProtocol.swift in Sources */,
|
||||||
0A21DB7F235DECC500C160A2 /* EntryField.swift in Sources */,
|
0A21DB7F235DECC500C160A2 /* EntryField.swift in Sources */,
|
||||||
D2E2A99F23E07F8A000B42E6 /* PillButton.swift in Sources */,
|
D2E2A99F23E07F8A000B42E6 /* PillButton.swift in Sources */,
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public extension TemplateProtocol where Self: PageBehaviorHandlerProtocol, Self:
|
|||||||
templateModel = try decodeTemplate(using: decoder, from: data)
|
templateModel = try decodeTemplate(using: decoder, from: data)
|
||||||
|
|
||||||
// Add additional required behaviors if applicable.
|
// Add additional required behaviors if applicable.
|
||||||
guard var pageBehaviorsModel = templateModel as? TemplateModelProtocol & PageBehaviorConatinerModelProtocol else { return }
|
guard var pageBehaviorsModel = templateModel as? TemplateModelProtocol & PageBehaviorContainerModelProtocol else { return }
|
||||||
|
|
||||||
pageBehaviorsModel.traverseAndAddRequiredBehaviors()
|
pageBehaviorsModel.traverseAndAddRequiredBehaviors()
|
||||||
var behaviorHandler = self
|
var behaviorHandler = self
|
||||||
|
|||||||
@ -9,6 +9,6 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public protocol MVMControllerModelProtocol: TemplateModelProtocol, FormHolderModelProtocol, PageBehaviorConatinerModelProtocol {
|
public protocol MVMControllerModelProtocol: TemplateModelProtocol, FormHolderModelProtocol, PageBehaviorContainerModelProtocol {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,11 +7,11 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
/// Protocol applied to a model that contains a list of behavior models.
|
/// Protocol applied to a model that contains a list of behavior models.
|
||||||
public protocol PageBehaviorConatinerModelProtocol {
|
public protocol PageBehaviorContainerModelProtocol {
|
||||||
var behaviors: [PageBehaviorModelProtocol]? { get set }
|
var behaviors: [PageBehaviorModelProtocol]? { get set }
|
||||||
}
|
}
|
||||||
|
|
||||||
public extension PageBehaviorConatinerModelProtocol {
|
public extension PageBehaviorContainerModelProtocol {
|
||||||
|
|
||||||
/// Adds the behavior model to the behaviors if possible.
|
/// Adds the behavior model to the behaviors if possible.
|
||||||
mutating func add(behavior: PageBehaviorModelProtocol) {
|
mutating func add(behavior: PageBehaviorModelProtocol) {
|
||||||
@ -25,7 +25,7 @@ public extension PageBehaviorConatinerModelProtocol {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public extension PageBehaviorConatinerModelProtocol where Self: MoleculeTreeTraversalProtocol {
|
public extension PageBehaviorContainerModelProtocol where Self: MoleculeTreeTraversalProtocol {
|
||||||
|
|
||||||
/// Traverses all models and adds any required behavior models.
|
/// Traverses all models and adds any required behavior models.
|
||||||
mutating func traverseAndAddRequiredBehaviors() {
|
mutating func traverseAndAddRequiredBehaviors() {
|
||||||
@ -30,7 +30,7 @@ public extension PageBehaviorHandlerProtocol {
|
|||||||
return behaviors
|
return behaviors
|
||||||
}
|
}
|
||||||
|
|
||||||
mutating func applyBehaviors(pageBehaviorModel: PageBehaviorConatinerModelProtocol, delegateObject: MVMCoreUIDelegateObject?) {
|
mutating func applyBehaviors(pageBehaviorModel: PageBehaviorContainerModelProtocol, delegateObject: MVMCoreUIDelegateObject?) {
|
||||||
// Pull the existing behaviors.
|
// Pull the existing behaviors.
|
||||||
var behaviors = (behaviors ?? []).filter { $0.transcendsPageUpdates }
|
var behaviors = (behaviors ?? []).filter { $0.transcendsPageUpdates }
|
||||||
// Create and append any new behaviors based on the incoming models.
|
// Create and append any new behaviors based on the incoming models.
|
||||||
@ -58,7 +58,7 @@ public extension PageBehaviorHandlerProtocol {
|
|||||||
|
|
||||||
public extension PageBehaviorHandlerProtocol where Self: MVMCoreViewControllerProtocol {
|
public extension PageBehaviorHandlerProtocol where Self: MVMCoreViewControllerProtocol {
|
||||||
|
|
||||||
mutating func applyBehaviors(pageBehaviorModel: PageBehaviorConatinerModelProtocol) {
|
mutating func applyBehaviors(pageBehaviorModel: PageBehaviorContainerModelProtocol) {
|
||||||
applyBehaviors(pageBehaviorModel: pageBehaviorModel, delegateObject: delegateObject?() as? MVMCoreUIDelegateObject)
|
applyBehaviors(pageBehaviorModel: pageBehaviorModel, delegateObject: delegateObject?() as? MVMCoreUIDelegateObject)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -88,8 +88,8 @@ public protocol PageCustomActionHandlerBehavior: PageBehaviorProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public extension MVMCoreUIDelegateObject {
|
public extension MVMCoreUIDelegateObject {
|
||||||
var behaviorModelDelegate: PageBehaviorConatinerModelProtocol? {
|
var behaviorModelDelegate: PageBehaviorContainerModelProtocol? {
|
||||||
(moleculeDelegate as? PageProtocol)?.pageModel as? PageBehaviorConatinerModelProtocol
|
(moleculeDelegate as? PageProtocol)?.pageModel as? PageBehaviorContainerModelProtocol
|
||||||
}
|
}
|
||||||
|
|
||||||
weak var behaviorTemplateDelegate: (PageBehaviorHandlerProtocol & NSObjectProtocol)? {
|
weak var behaviorTemplateDelegate: (PageBehaviorHandlerProtocol & NSObjectProtocol)? {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user