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

@@ -10,8 +10,8 @@ import Foundation
import SwiftUI
import Combine
final class AppState: BindableObject {
var willChange = PassthroughSubject<AppState, Never>()
final class AppState: ObservableObject {
var objectWillChange = PassthroughSubject<AppState, Never>()
var usersState: UsersState
@@ -21,7 +21,7 @@ final class AppState: BindableObject {
func dispatch(action: Action) {
usersState = UserStateReducer().reduce(state: usersState, action: action)
willChange.send(self)
objectWillChange.send(self)
}
}