Hugo Alonso Hugo Alonso - 1 year ago 86
iOS Question

RxSwift - fetch every item on the list

I have a method that receives

, which are ids of some Items.

I'd like to go through this list and download every Item using another method that returns/download
to finally return an
in this very same function.

How can I do this using RxSwift/RxCocoa operators?

Answer Source

This is an easy one! There's a couple of sneaky protocol extensions for arrays of observables built into the library. { Int->Observable<Item> in
.zip { $0 }
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download