Questions tagged [rxdatasources]
70 questions
9
votes
1 answer
How to bind table view with multiple sections that represent different data types using RxSwift and RxSwiftDataSources?
I am trying to create a table view with multiple sections using RxSwift. Each section displays data representing a different type.
I found the RxSwiftDataSources library and implemented the example from their documentation.
Here is a quick…

nburk
- 22,409
- 18
- 87
- 132
5
votes
1 answer
RxSwift how to know end of TableView reload
i want know end of reloadTableView
Then I want to scroll down to the bottom of the table view.
Before I used RxSwift
Just after reloadData
It was possible using setContentOffSet or ScrollToRow.
I tried it with the code I found.
never called…

oijafoijf asnjksdjn
- 1,115
- 12
- 35
4
votes
0 answers
Can't delete cell from tableview using rxdatasources swift
I have an tableview where I populate some data from view model, I am using RxSwift and RxDataSources... I have next code
enum TableViewEditingCommand {
case DeleteItem(IndexPath)
}
struct SectionedTableViewState {
fileprivate var…

Irvin Chan
- 2,587
- 2
- 15
- 20
4
votes
1 answer
Observable being disposed ahead of time
I think it's better if I explain what I'm trying to achieve because I think the error is on my misunderstanding on how Observables work.
I have a UIViewController that contains a UITableView I'm also using RxSwift and RxDataSources, so I'm binding…

Diogo Antunes
- 2,241
- 1
- 22
- 37
4
votes
2 answers
Self sizing collectionViewCells using RxDataSource
How to achieve self sizing collectionViewCells using RxDataSource?
I've tried setting
flowLayout.estimatedItemSize = CGSize(width: 187, height: 102)
But then app crashes when dataSourceObservable changes.
I've tried setting cell size inside…

Xernox
- 1,706
- 1
- 23
- 37
4
votes
2 answers
Subscription to a UIButton.rx.tap located in UITableViewCell within UITableViewDataSource
Let's say I have a UIButton in a UITableViewCell.
After dequeuing the cell from the UITableView I want to subscribe to the UIButton.rx.tap. The issue is that if my UITableViewCell is dequeued multiple times, the subscriptions would retain. Currently…

Timofey Solonin
- 1,393
- 13
- 20
3
votes
2 answers
RxDataSources flashing and flickering on every change in the datasource content
Initially the app shows UIViewCollection with one section and then new sections appears after receiving the content. A user scrolls the collection and new sections add to the bottom of the collection.
I use MVVM, so in my ViewModel I add a new…

Yura Buyaroff
- 1,718
- 3
- 18
- 31
3
votes
3 answers
How to reflect the new section to UICollectionView in RxDataSource?
I am building an iOS app with RxSwift and RxDataSource using VIPER architecture. I want to change the content of the UICollectionView as the value of the presenter changes (as the user typed in some letters in the searchBar, the collectionView…

joey22
- 221
- 1
- 4
- 11
3
votes
2 answers
RxTableViewSectionedReloadDataSource
This is a tableView in RxSwift
I am not able to configure the dataSource. There seems to be parameters missing for RxTableViewSectionedReloadDataSource, although this is strange as I follow the exact same code source of the official docs
Xcode…

swiftdev
- 51
- 2
- 5
3
votes
3 answers
Xcode crashes while adding RxDataSource to UICollectionView
Hey I'm trying to get an UICollectionView, hosted by an UICollectionViewController working with RxCocoa and RxDataSources.
Everything works fine when I use an UIViewController, with an embedded UICollectionView.
But when I try to connect via the…

vander2675
- 80
- 6
2
votes
2 answers
Swift enum conformance to identifiable: Type doesn't conform to Identifiable protocol
I have an enum with associated values, which I want to use as an item in RxDataSources. I tried conforming it to identifiable by conforming it to Hashable like below
enum DriverHubWidget: Hashable, Identifiable {
static func == (lhs:…

Vaibhav Singh
- 119
- 14
2
votes
2 answers
How to provide custom header/footer to a tableView using RxDatasources
I wasn't really able to find this in docs or somewhere, but is there a way to provide custom header and footer loaded from nib, using RxDatasources?
For example, I am dequeuing a cell like this:
let dataSource =…

Whirlwind
- 14,286
- 11
- 68
- 157
2
votes
1 answer
Implementing multiple sections with RxDatasources
I am trying to make multiple sections (two actually) using RxDatasources. Usually with one section, I would go like this:
Section model:
import Foundation
import RxDataSources
typealias NotificationSectionModel = AnimatableSectionModel

Whirlwind
- 14,286
- 11
- 68
- 157
2
votes
1 answer
Preventing first responder to resign on tableview reload
I'm using RxSwift and currently, I have a list of addresses that could be edited inline
I.E: The user clicks on a button and the cell is transformed into editing mode essentially displaying a few UITextFields
Now the problem is that when I bind the…

Tarek S. Abdelhamed
- 23
- 1
- 3
2
votes
0 answers
RxSwift TableView with swipe actions
I'm using RxSwift with RxDataSources framework to setup a tableview:
let dataSource = RxTableViewSectionedAnimatedDataSource>(configureCell: { _, tableView, indexPath, item -> UITableViewCell in
let cell…

PAK
- 431
- 4
- 17