mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-06-12 01:04:26 +02:00
Update
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
See LICENSE folder for this sample’s licensing information.
|
||||
|
||||
Abstract:
|
||||
A model object that stores app data.
|
||||
*/
|
||||
|
||||
import Combine
|
||||
import SwiftUI
|
||||
|
||||
final class UserData: BindableObject {
|
||||
let didChange = PassthroughSubject<UserData, Never>()
|
||||
|
||||
var showFavoritesOnly = false {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
}
|
||||
}
|
||||
|
||||
var landmarks = landmarkData {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user