Changes MyAppsViewController.noAppsDataSource to non-prefetching data source

This commit is contained in:
Riley Testut
2023-12-08 14:55:51 -06:00
parent 640d2021ef
commit 5d0e4c956a

View File

@@ -173,9 +173,9 @@ private extension MyAppsViewController
return dataSource
}
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewDataSource<InstalledApp>
{
let dynamicDataSource = RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>()
let dynamicDataSource = RSTDynamicCollectionViewDataSource<InstalledApp>()
dynamicDataSource.numberOfSectionsHandler = { 1 }
dynamicDataSource.numberOfItemsHandler = { _ in self.updatesDataSource.itemCount == 0 ? 1 : 0 }
dynamicDataSource.cellIdentifierHandler = { _ in "NoUpdatesCell" }