Essential changes for Xcode 11 beta4

This commit is contained in:
John Holdsworth
2019-07-28 12:07:10 +01:00
parent 8018d0c2a0
commit 57e72ec52c
24 changed files with 58 additions and 57 deletions
@@ -6,7 +6,7 @@ public final class Store<StateType>: BindableObject where StateType: StateMachin
private let initialState: StateType
private var subsequentStates: [StateType] = []
public let didChange = PassthroughSubject<Void, Never>()
public let willChange = PassthroughSubject<Void, Never>()
public init(state: StateType) {
initialState = state
@@ -23,7 +23,7 @@ public final class Store<StateType>: BindableObject where StateType: StateMachin
var currentStateIndex: Int = 0 {
didSet {
withAnimation {
didChange.send(())
willChange.send(())
}
}
}