mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-23 17:18:45 +02:00
Essential changes for Xcode 11 beta4
This commit is contained in:
@@ -10,11 +10,11 @@ import SwiftUI
|
||||
import Combine
|
||||
|
||||
final class UserData: BindableObject {
|
||||
let didChange = PassthroughSubject<UserData, Never>()
|
||||
let willChange = PassthroughSubject<UserData, Never>()
|
||||
|
||||
var notes = NoteData.shared.notes {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
NoteData.shared.notes = notes
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user