From a225cf81e3db515a61fd26b42450413045403b74 Mon Sep 17 00:00:00 2001 From: Damodaram Date: Thu, 22 Apr 2021 20:54:44 +0530 Subject: [PATCH] review changes --- .../ListLeftVariableIconWithRightCaretAllTextLinksModel.swift | 2 +- MVMCoreUI/BaseControllers/ViewController.swift | 2 +- MVMCoreUI/Behaviors/GetContactBehavior.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinksModel.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinksModel.swift index 3f48a2d6..3129776b 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinksModel.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinksModel.swift @@ -18,7 +18,7 @@ public class ListLeftVariableIconWithRightCaretAllTextLinksModel: ListItemModel, public var rightLabel: LabelModel public var children: [MoleculeModelProtocol] { - return [image, eyebrowHeadlineBodyLink,rightLabel] + return [image, eyebrowHeadlineBodyLink, rightLabel] } //----------------------------------------------------- diff --git a/MVMCoreUI/BaseControllers/ViewController.swift b/MVMCoreUI/BaseControllers/ViewController.swift index 20ba4a66..8a22e23a 100644 --- a/MVMCoreUI/BaseControllers/ViewController.swift +++ b/MVMCoreUI/BaseControllers/ViewController.swift @@ -653,7 +653,7 @@ import UIKit // MARK: - Behavior Execution //-------------------------------------------------- - public func executeBehaviors(_ behaviorBlock: (_ behavior: T) -> Void) { + public func executeBehaviors(_ behaviorBlock: (_ behavior: T) -> Void) { behaviors?.compactMap { $0 as? T }.forEach { behaviorBlock($0) } } } diff --git a/MVMCoreUI/Behaviors/GetContactBehavior.swift b/MVMCoreUI/Behaviors/GetContactBehavior.swift index b36f778b..c7327a1c 100644 --- a/MVMCoreUI/Behaviors/GetContactBehavior.swift +++ b/MVMCoreUI/Behaviors/GetContactBehavior.swift @@ -48,7 +48,7 @@ public class PageGetContactBehavior: PageVisibilityBehavior { public func getContacts() { guard let rootMolecules = delegate?.moleculeDelegate?.getRootMolecules() else { return } let store = CNContactStore() - let consumers: [PageGetContactBehaviorConsumerProtocol] = rootMolecules.allMoleculesOfType() + let consumers: [PageGetContactBehaviorConsumerProtocol] = rootMolecules.allMoleculesOfType() for consumer in consumers { guard let parameters = consumer.getMatchParameters(), let contacts = try? store.unifiedContacts(matching: parameters.0, keysToFetch: parameters.1) else { return }