-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_dataSource.numberOfItems(in: section) always return zero #3
Comments
@steve21124 |
@steve21124 Thank you! |
@steve21124 |
Thank you for the help. I still have problem with this line It return zero items. Do you have simple example without using "RxSwift and RxCocoa" ? |
@steve21124 I've fixed your code. please check it. And sorry. You can get an actual count of data in update.completion closure. |
Thank you so much for the fixes. Now it make sense. It take a while to debug it. :) With this sample code, I now know, it will work without using "RxSwift and RxCocoa" . |
fyi: currently, i am planning to remove "import RxSwift, EasyPeasy, AsyncDisplayKit" dependencies of Component.swift the reason because I am using ios 11 beta 5 and these libraries is not compatible yet with swift 4.0. If you do have solution for it. feel free to share it. Thank you |
Great library. thanks for sharing.
Not sure where I did the mistake. it always return zero when calling _dataSource.numberOfItems(in: section) . Basically, I am trying to see if DataSources will work without using RxSwift and RxCocoa. Since the demo only use (RxSwift and RxCocoa)
`
private lazy var _dataSource: DataSource = .init(adapter: .init(collectionView: self.collectionView))
// then calling this below always return zero. do you know why?
_dataSource.numberOfItems(in: 0)
`
The text was updated successfully, but these errors were encountered: