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