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

@@ -9,12 +9,12 @@
import SwiftUI
import Combine
final class UserData: BindableObject {
let willChange = PassthroughSubject<UserData, Never>()
final class UserData: ObservableObject {
let objectWillChange = PassthroughSubject<UserData, Never>()
var notes = NoteData.shared.notes {
didSet {
willChange.send(self)
objectWillChange.send(self)
NoteData.shared.notes = notes
}
}