mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-29 05:31:59 +02:00
Essential changes for Xcode 11 beta4
This commit is contained in:
@@ -9,17 +9,17 @@ import Combine
|
||||
import SwiftUI
|
||||
|
||||
final class UserData: BindableObject {
|
||||
let didChange = PassthroughSubject<UserData, Never>()
|
||||
let willChange = PassthroughSubject<UserData, Never>()
|
||||
|
||||
var showFavoritesOnly = false {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
|
||||
var landmarks = landmarkData {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user