From 3d94e7d7c46de7657757d01161ce2162a0840f5a Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 15 Aug 2022 16:30:38 -0500 Subject: [PATCH] removed property Signed-off-by: Matt Bruce --- VDS/Classes/Control.swift | 1 - VDS/Classes/View.swift | 1 - VDS/Components/Label/Label.swift | 1 - VDS/Protocols/ModelHandlerable.swift | 3 --- 4 files changed, 6 deletions(-) diff --git a/VDS/Classes/Control.swift b/VDS/Classes/Control.swift index e37d0655..745aa6b4 100644 --- a/VDS/Classes/Control.swift +++ b/VDS/Classes/Control.swift @@ -16,7 +16,6 @@ open class Control: UIControl, ModelHandlerable, ViewProto // MARK: - Combine Properties //-------------------------------------------------- @Published public var model: ModelType = ModelType() - public var modelPublished: Published { _model } public var modelPublisher: Published.Publisher { $model } public var subscribers = Set() diff --git a/VDS/Classes/View.swift b/VDS/Classes/View.swift index 1c6354d1..7b062db4 100644 --- a/VDS/Classes/View.swift +++ b/VDS/Classes/View.swift @@ -16,7 +16,6 @@ open class View: UIView, ModelHandlerable, ViewProtocol, R // MARK: - Combine Properties //-------------------------------------------------- @Published public var model: ModelType = ModelType() - public var modelPublished: Published { _model } public var modelPublisher: Published.Publisher { $model } public var subscribers = Set() diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 9114d41a..bce1f89f 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -18,7 +18,6 @@ open class LabelBase: UILabel, ModelHandlerable, ViewProt // MARK: - Combine Properties //-------------------------------------------------- @Published public var model: ModelType = ModelType() - public var modelPublished: Published { _model } public var modelPublisher: Published.Publisher { $model } public var subscribers = Set() diff --git a/VDS/Protocols/ModelHandlerable.swift b/VDS/Protocols/ModelHandlerable.swift index 5fff4375..ef60f1df 100644 --- a/VDS/Protocols/ModelHandlerable.swift +++ b/VDS/Protocols/ModelHandlerable.swift @@ -11,10 +11,8 @@ import Combine public protocol ModelHandlerable: AnyObject { associatedtype ModelType: Modelable var model: ModelType { get set } - var modelPublished: Published { get } var modelPublisher: Published.Publisher { get } var subscribers: Set { get set } - init(with model: ModelType) func set(with model: ModelType) func shouldUpdateView(viewModel: ModelType) -> Bool @@ -39,7 +37,6 @@ extension ModelHandlerable { .debounce(for: .seconds(Constants.ModelStateDebounce), scheduler: RunLoop.main) .sink { [weak self] viewModel in self?.updateView(viewModel: viewModel) - } .store(in: &subscribers) }