Questions tagged [rxdatasources]
70 questions
0
votes
1 answer
RxSwift Cannot convert call result type '(_) -> Disposable' to expected type '(_) ->
I'm trying to add an headerView to a collectionView using RxSwift.
I get this error:
Cannot convert call result type '() -> Disposable' to expected type '() ->
at this line:
obsHeader.asObservable().bind(to: collectionView.rx.items(dataSource:…

Andrea.Ferrando
- 987
- 13
- 23
0
votes
1 answer
Append items to MultipleSectionModel
I follow this sample and successfully created multi-section tableView, but how can I append items to one of this sections? I can recreate the section but I want to append items instead of reloading tableView.

Ali Baqbani
- 153
- 1
- 2
- 13
0
votes
1 answer
Dynamically filter results with RxSwift and Realm
I have a very simple project, where I want to dynamically filter content in UITableView regarding pressed index in UISegmentedControl. I'm using MVVM with RxSwift, Realm and RxDataSources. So my problem, that if I want to update content in…

pavel_s
- 465
- 1
- 7
- 27
0
votes
1 answer
RealmSwift obtain each T object
I have list of objects T and I want to calculate their sum (T objects)
var objects: Observable
- >
T object has a method which return Int value.
The main idea to get each object and prepare array of values (flatMap function). The next step…

biloshkurskyi.ss
- 1,358
- 3
- 15
- 34
0
votes
1 answer
Unable to filter objects with RxSwift/RxRealm
I am new to reactive programming and I am experiencing difficulty in filtering and accessing object from a specific index. Below is my code snippet.
private var contacts: Observable<(AnyRealmCollection, RealmChangeset?)>!
…

muneikh
- 2,067
- 5
- 25
- 59
0
votes
1 answer
RxSwift DataSource configureCell not able to assign function
I am trying to use RxSwift/RxDataSource with TableView but I am not able to assign configureCell with an existing function. Code below:
import UIKit
import RxSwift
import RxCocoa
import RxDataSources
class BaseTableViewController: UIViewController…

Keldon
- 192
- 1
- 10
0
votes
1 answer
RxSwift and UICollectionView, UITableView
I have a question: how to properly implement such a scenario in Rx-way with RxDataSources:
We have a class with UICollectionView (or UITableView, in my case it's collection view), the results are not immediately present, they come asynchronously…

jonaszmclaren
- 2,459
- 20
- 30
-1
votes
0 answers
My collection view lags while scrolling upwards after reload
I am using an RxCollectionViewSectionedAnimatedDataSource. Whenever I reload the data source, and try to scroll vertically from bottom to top, the scrolling lags and looks as if some elements are getting skipped.
Here is how I have implemented…

paprika
- 164
- 1
- 8
-1
votes
1 answer
UIcollectionView - Creating horizontally scrolled pager filled with items grid
I am developing port of application from android. In my application In one of screens I present to user collection of parameters grouped by sections. Every section is presented as page of tile items in spannable grid. User can scroll betwen sections…

Maciej Grodzki
- 71
- 8
-2
votes
1 answer
Table View Data Source in MVVM-C
where should I put UITableView Data Sources (I am using RxDataSources) when using MVVM-C architecture?

Zafar Ivaev
- 133
- 5