mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-26 18:48:43 +02:00
Essential changes for Xcode 11 beta4
This commit is contained in:
@@ -9,23 +9,23 @@ import SwiftUI
|
||||
import Combine
|
||||
|
||||
final class UserData: BindableObject {
|
||||
let didChange = PassthroughSubject<UserData, Never>()
|
||||
let willChange = PassthroughSubject<UserData, Never>()
|
||||
|
||||
var showFavoriteOnly = false {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
|
||||
var videos = videoList {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
|
||||
var currentVideo = videoList[0] {
|
||||
didSet {
|
||||
didChange.send(self)
|
||||
willChange.send(self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user