Sorry for that typo! I didn't properly escape < and > characters so markdown omitted the whole content inside it, the correct code looks like this: let objectWillChange = PassthroughSubject<Void, Never>()
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
class RoomStore: ObservableObject {
var rooms: [Room] {
willSet { objectWillChange.send() }
}
}
_PassthroughSubject() Generic parameter 'Failure' could not be inferred
Why do I get this error?
Have imported Combine and SwiftUI
Sorry for that typo! I didn't properly escape < and > characters so markdown omitted the whole content inside it, the correct code looks like this:
let objectWillChange = PassthroughSubject<Void, Never>()