reverted to @published

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-09-14 12:05:24 -05:00
parent f10e04cef5
commit 8dfe5a7eea

View File

@ -21,8 +21,8 @@ public class ModelScrollViewController<ModelType: Modelable>: UIViewController,
//--------------------------------------------------
// MARK: - Combine Properties
//--------------------------------------------------
public var modelSubject = CurrentValueSubject<ModelType, Never>(ModelType())
public var modelPublisher: AnyPublisher<ModelType, Never> { modelSubject.eraseToAnyPublisher() }
@Published public var model: ModelType = ModelType()
public var modelPublisher: Published<ModelType>.Publisher { $model }
public var subscribers = Set<AnyCancellable>()
public var firstRender: Bool = false