You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[RxDataSource] Instance method 'items(dataSource:)' requires that 'CollectionViewSectionedDataSource<T>' conform to 'RxCollectionViewDataSourceType’
#48
Closed
kimkyuchul opened this issue
Jan 18, 2024
· 0 comments
output.artistList
.asDriver(onErrorJustReturn:[]).drive(artistCollectionView.rx.items(dataSource: dataSource)).disposed(by: disposeBag)
// *Instance method 'items(dataSource:)' requires that 'CollectionViewSectionedDataSource<ArtistDataModel>' conform to 'RxCollectionViewDataSourceType’*
그러나 서버에서 받아올 당시 ArtistDataModel로 변환해주지 않아서 다음과 같은 오류가 발생 한 것이다.
Instance method 'items(dataSource:)' requires that 'CollectionViewSectionedDataSource' conform to 'RxCollectionViewDataSourceType’
Instance method 'items(dataSource:)' requires that 'CollectionViewSectionedDataSource' conform to 'RxCollectionViewDataSourceType’
RxSwiftCommunity/RxDataSources#376
The text was updated successfully, but these errors were encountered: