Hugo Alonso Hugo Alonso - 10 months ago 39
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?


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 }