I've been trying to follow the 'Introducing SwiftUI - Building Your First App' WWDC 19 video. No sample code is provided for this talk but I've been creating it as the presenter goes along. When trying to create a store though I get an error that 'Cannot invoke 'send' with no arguments' from the line:
didSet { didChange.send() }
I'm new to programming and struggling to troubleshoot.
import SwiftUI
import Combine
class ReferenceStore : BindableObject {
var references: [Reference] {
didSet { didChange.send() }
}
init(references: [Reference] = []) {
self.references = references
}
var didChange = PassthroughSubject<Void, Never>()
}
I'm using Xcode 11 beta and MacOS Catalina if it helps.