Some scenarios like login feature, We have accountTextField, passwordTextField, and login button on the screen, while user tap login button We will call API with input account and password for login request parameter like this (Which is not reactive enough and need [weak self] 😈).

We can use combineLatest(resultSelector: ) and modify to this (We prevent using [weak self] cause capture self is no need 👼 )

Don’t forget using .throttle for the tap action.




I am Red, an iOS developer, I have hands on experience in iOS, Flutter, familiar with RxSwift Moya Unit/UI testing and Gitlab-CI.