Step into Swift logo

What are Units in RxCocoa?

RxSwift: Units

RxSwift: Units

  • A group of classes, which are specialised observables, that allow for easier to write and simpler code, especially when working with UI.


  • Units cannot error out.
  • Units are observed on the main scheduler.
  • Units subscribe on the main scheduler.
  • Units share side effects.

  • Units exist to ensure user interface always has something to display and that the displayed data is always treated in the correct way so the UI can handle it.

2 main component parts of the Units framework:

< All Posts