reverted to @published
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
f10e04cef5
commit
8dfe5a7eea
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user