mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-11-28 19:12:49 +01:00
Essential changes for Xcode 11 beta4
This commit is contained in:
1 parent
8018d0c2a0
commit
57e72ec52c
24 files changed
+58
-57
No files matched your search
@@ -11,7 +11,7 @@ import SwiftUI
|
||||
import Combine
|
||||
|
||||
final class AppState: BindableObject {
|
||||
var didChange = PassthroughSubject<AppState, Never>()
|
||||
var willChange = 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)
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user