'how to rxswift Observable to value?

I'm currently using RIBs and ReactorKit to bind networking data. The problem here is that the network results come out as Observables, which I have a hard time binding to ReactorKit. Please let me know if there is a way to strip the Observable or turn it into a value. Just like when BehaviorRelay is .value, the value comes out...

    dependency.loadData.getData().flatMap { $0.detailData.flatMap { $0.result }}

====>> Obervable

now what do i do? TT



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source