Questions tagged [rxdatasources]
70 questions
1
vote
1 answer
RxDatasource in RxSwift reload animation don't update data source
RxDatasource in RxSwift [RxTableViewSectionedAnimatedDataSource] Reload Animation don't update data source. What mistake I am doing? I am even unable to bind my action with button properly.
TableDataSource and Table editing commands
struct…

Praveen
- 25
- 1
- 8
1
vote
1 answer
Tableview data isn't being set while using RxSwift
I am creating my tableview programmatically
extension UITableView {
static var tableView: UITableView {
let tableView = UITableView()
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "menuCell")
…

Thasian
- 57
- 1
- 1
- 7
1
vote
1 answer
How to create multiple Sections in UICollectionView with multiple Headers using RxDatasource
Before Anyone makes it duplicate I have scene all the RxDatasource tags on SO and other sites also. But anyone didn't worked for me.
So my question is totally related to this one that I followed for my case also. But also I have no idea what's going…

Chalenger
- 65
- 1
- 12
1
vote
1 answer
How I can correctly combine items in section with RxDataSource swift?
I need to combine chat message in section when items send in one minutes.
ViewModel
.....
.scan([MessageSectionModel]()) { sectionModels, messageItem in
var models = sectionModels
if let lastSectionModel = sectionModels.last {
…

baluhman
- 25
- 9
1
vote
1 answer
How to allow editing of a table view backed by RxDataSources?
I am building a table view backed by RxDataSources. I want to enable editing for this table view, such that the user can delete items.
I currently have this code:
var strings = [String]() {
didSet {
observable.accept(strings)
…

Sweeper
- 213,210
- 22
- 193
- 313
1
vote
1 answer
RxSwift MVVM tableview/collectionview with user input cells representing state
I have one request for any of you. I want to create collectionview/tableview which will have user inputs in cells. Mixture of values from those inputs would represent state. I want to observe that state and if some conditions are met, I want to…

beretis
- 899
- 1
- 9
- 24
1
vote
2 answers
How to handle two table view association?
I am a new Swifter, Here is the code of my new company.
Use RxSwift,use RxDataSource, how to handle two table view association?
The left tableView's cell clicked , the right tableView's data changed along.
Organize the right table view's data via…

dengST30
- 3,643
- 24
- 25
1
vote
2 answers
RxDataSources tableView with multiple sections from one API source
Currently for our API requests we use Rx. An example of how we use it is:
let orderRxService = OrderRxService.listAsShop(shopId, status: .active)
.repeatRequest(delay: 4)
.observeOn(MainScheduler.instance)
.subscribe( onNext: { [weak…

Jeroen
- 2,011
- 2
- 26
- 50
1
vote
1 answer
2 way binding in UITableView using RxSwift
I am using MVVM pattern with RxSwift, RxCocoa, RxDataSources.
I have successfully populated the UITableView with array of PaletteViewModel present in ListViewModel by using RxDataSource but it's one way binding.
I want to achieve what I have shown…

Anirudha Mahale
- 2,526
- 3
- 37
- 57
1
vote
1 answer
UISearchBar in UITableView by Rxswift
I use RxSwift to show list of Persons in my tableview, and my tableview has two sections, the first one is old searches and the second one is all Persons. now I don't know how should I filter Persons when users type a name on UISearchBar's…

Amin Shafiee
- 13
- 1
- 3
1
vote
1 answer
RxSwift, RxDataSources: How to bind dynamic data to UITableView by using RxDataSources?
after binding some data to UITableView by this codes:
struct CustomData {
var anInt: Int
var aString: String
var aCGPoint: CGPoint
}
struct SectionOfCustomData {
var header: String
var items: [CustomData]
}
extension…

behrad
- 596
- 1
- 5
- 19
1
vote
1 answer
RxDataSources and ability to mutate model
during working on application hardly relying on RxSwift I encountered some(I'd to think) basic problem. I'm using RxDataSources sublibrary to manage section and items in my TableView. Everywhere I see a examples, how to achieve one way binging(I…

MiXen
- 105
- 1
- 2
- 12
1
vote
2 answers
Cannot set bind(to: UITableView) with RxSwift Variable asObservable()
I'm trying to bind(to:) a collectionView, but the tableView doesn't work either. I have a viewModel where is my Variable<[]> and I want to subscribe when the value changes, with my tableView.
viewModel.theVariable
.asObservable()
…

Bartando
- 719
- 8
- 26
1
vote
0 answers
RxDataSources with UICollection
I'm learning RxSwift, i want used RxDataSources with UICollectionView, but nothing is shown, please tell me where i was wrong, Thanks;
My code:
---- Model ----
struct Traveler {
let name: String
let avater: UIImage?
}
struct Travelers {
…

ZhihaoZhang
- 79
- 8
1
vote
0 answers
CollectionView cell separators not appearing when using RxSwift
The CollectionView cells' separators are not appearing when I populate the Collection View using RxSwift. I'm using RxDataSources instead of the class functions. I believe the function drawSeparatorIfNeeded isn't being called somewhere along the…

Ahmad
- 603
- 1
- 8
- 17