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 // MARK: - Combine Properties
//-------------------------------------------------- //--------------------------------------------------
public var modelSubject = CurrentValueSubject<ModelType, Never>(ModelType()) @Published public var model: ModelType = ModelType()
public var modelPublisher: AnyPublisher<ModelType, Never> { modelSubject.eraseToAnyPublisher() } public var modelPublisher: Published<ModelType>.Publisher { $model }
public var subscribers = Set<AnyCancellable>() public var subscribers = Set<AnyCancellable>()
public var firstRender: Bool = false public var firstRender: Bool = false