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

View File

@@ -4,7 +4,7 @@ import Combine
final class Store<State, Action>: BindableObject {
typealias Reducer = (State, Action) -> State
let didChange = PassthroughSubject<State, Never>()
let willChange = PassthroughSubject<State, Never>()
var state: State {
lock.lock()
@@ -29,6 +29,6 @@ final class Store<State, Action>: BindableObject {
lock.unlock()
didChange.send(newState)
willChange.send(newState)
}
}