mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-26 10:38:37 +02:00
Xcode 11 beta 6
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user