Step into Swift logo

What is a Driver in RxCocoa?

RxSwift: Driver

RxSwift: Driver

  • Special observable
  • Cannot error layout.
  • All processes ensured to execute on the main thread.
  • Go from: a single observable that updates the entire UI to bindTo and reuse the same observable across the viewController.
result.map { "\($0.score)" }
      .drive(scoreLabel.rx.text)
      .addDisposableTo(disposeBag)

< All Posts