Step into Swift logo

What is the SkipWhile Operator in RxSwift?

SkipWhile Operator

RxSwift: SkipWhile Operator

skipWhile { predicate }

  • Receives a predicate and skips everything up until the predicate is false and then let everything through.
  • true = skip false = don’t skip Works the opposite to filter!
----7--9-----1--4---->

skipWhile { x != 1 }

-------------1--4---->

< All Posts