mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-26 19:31:20 +01:00
22 lines
435 B
Swift
Executable File
22 lines
435 B
Swift
Executable File
//
|
|
// UserData.swift
|
|
// SwiftUINote
|
|
//
|
|
// Created by chanju Jeon on 05/06/2019.
|
|
// Copyright © 2019 we'd. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import Combine
|
|
|
|
final class UserData: ObservableObject {
|
|
let objectWillChange = PassthroughSubject<UserData, Never>()
|
|
|
|
var notes = NoteData.shared.notes {
|
|
didSet {
|
|
objectWillChange.send(self)
|
|
NoteData.shared.notes = notes
|
|
}
|
|
}
|
|
}
|