mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-01-17 22:46:42 +01:00
22 lines
419 B
Swift
Executable File
22 lines
419 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: BindableObject {
|
|
let didChange = PassthroughSubject<UserData, Never>()
|
|
|
|
var notes = NoteData.shared.notes {
|
|
didSet {
|
|
didChange.send(self)
|
|
NoteData.shared.notes = notes
|
|
}
|
|
}
|
|
}
|