Step into Swift logo

What is the Filter Operator in RxSwift?

Filter Operator

RxSwift: Filter Operator

filter()

  • Only allows though elements that pass a defined predicate test.
  • Applies to the life of the subscription.
----1--20-----33--49---->

filter(x => x > 30)

--------------33--49---->

< All Posts