DataSource
DataSource copied to clipboard
Ambiguous reference to member 'map'
Hi,
In an old Swift 4 project which used this library, I had the following code.
let expanded = MutableProperty(false)
let dataSource = ProxyDataSource()
let s1 = StaticDataSource(items: [])
let s2 = StaticDataSource(items: [])
dataSource.innerDataSource <~ expanded.map { $0 ? s1 : s2 }
And it worked fine.
Recently I updated it to the latest version (1.0.1). Now I'm getting the following compile error.
Ambiguous reference to member 'map'
I checked the ReactiveSwift versions DataSource used in the old (3.0.1) and in the new version (6.0.1). The map function is still the same. So I'm not sure why error is occurring now.