Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

Questions tagged [rx-swift]

RxSwift's intention is to enable easy composition of asynchronous operations and event/data streams.

Filter by
Sorted by
Tagged with
2 votes
1 answer
237 views

UIView position updates based on device motion via RxSwift

I've created a simple function to work as a level, where the dot on screen is centered when the device is completely flat. It changes position based on device orientation. I use RxSwift to update the ...
jclasley's user avatar
3 votes
1 answer
67 views

Emitting multiple States for Single Input using ViewModelType architecture

Below I have enum representing State of a UITableView. The states are divided into 3 categories as below. For all the 3 states I have different UITableViewCells which will be shown for respected cases....
Anirudha Mahale's user avatar
5 votes
1 answer
1k views

Binding ViewModel to ViewController using RxSwift

I have a ViewController and ViewModel. Here I am using the .subscribe() method too many ...
Anirudha Mahale's user avatar
3 votes
1 answer
2k views

Create Products TableView with PAGINATION and LIKE product feature in RxSwift MVVM

I have tried to develop a simple product listing app in RxSwift with MVVM design pattern. I have managed to achieve it but I need someone to review my code, such as: Have I followed the proper RxSwift ...
Ajay Bhanushali's user avatar
1 vote
1 answer
60 views

Calling API only once on changing segments

I am working on a screen which has segmented control and has 3 segments (year value 2019, 18, 17) and what I am doing is that on each segment click I have to reload data inside a tableview (getting ...
Shabir jan's user avatar
3 votes
1 answer
1k views

Login page using RxSwift in MVVM

I am building a simple login page which will check for username before navigating to another screen and here is how I am doing the binding now. I would like to know if I am doing it right and if I am ...
Samuel Kith's user avatar
0 votes
1 answer
177 views

Is my code Declarative (RxSwift) ? Please help me to explain why not?

I'm newbie in Swift and Rx programming. Is my below code is declarative ? If not, please rewrite it and explain to help me more understanding about declarative :( (my English is so bad) ...
Hien Nguyen's user avatar
4 votes
1 answer
886 views

Maintainable networking layer architecture

There are so many different solutions and examples on how to build a proper networking layer, but every app has different constraints, and design decisions are made based off trade-offs, leaving me ...
AnonProgrammer's user avatar
1 vote
0 answers
1k views

RxSwift iOS Observable FIFO Queue Implementation in Swift 2

I am trying to develop an Observable queue that executes given Observable chains one at a time. The code will be used to encode videos on an iPhone and only one queue will be needed per launch, ...
diegoperini's user avatar
4 votes
1 answer
329 views

Notify user of credential failure and make another attempt

The below code works because of the do operator on line 24. Is there a more functional way to get the test to pass, or would you consider this an appropriate use of ...
Daniel T.'s user avatar
  • 991