Xcode 15 Mac book M1
Cannot call value of non-function type '[Observable.Type]'
private func bindingsStrongify<Event, O, WeakOwner>(_ owner: WeakOwner, _ bindings: @escaping (WeakOwner, O) -> (Bindings<Event>))
-> (O) -> (Bindings<Event>) where WeakOwner: AnyObject {
return { [weak owner] state -> Bindings<Event> in
guard let strongOwner = owner else {
return Bindings(subscriptions: [], events: [Observable<Event>]())
}
return bindings(strongOwner, state)
}
}
The compiler is confusing the Swift.Observable type with the RxSwift.Observable type. Use: return Bindings(subscriptions: [], events: [RxSwift.Observable<Event>]())
instead.