Xcode 11 beta 6

This commit is contained in:
John Holdsworth
2019-08-20 18:54:37 +02:00
parent a36ff1b7ca
commit 7de7e1e47b
40 changed files with 114 additions and 115 deletions

View File

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