UICollectionViewDataSourcePrefetching does not work on SwiftUI wrapped VisionOS

prefetching logic for UICollectionView on VisionOS does not work.

I have set up a Standalone test repo to demonstrate this issue. This repo is basically a visionOS version of Apple's guide project on implementation of prefetching logic.

in repo you will see a simple ViewController that has UICollectionView, wrapped inside UIViewControllerRepresentable.

on scroll, it should print 🕊️ prefetch start on console to demonstrate func collectionView(_ collectionView: UICollectionView, prefetchItemsAt indexPaths: [IndexPath]) is called. However it never happens on VisionOS devices. With the same code it behaves correctly on iOS devices

Hey @ckse93,

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include a link to standalone test repo, and post the FB number here once you do. This helps us prioritize and evaluate the issue with our engineering teams.

Bug Reporting: How and Why? has tips on creating your bug report.

Thanks,
Michael

UICollectionViewDataSourcePrefetching does not work on SwiftUI wrapped VisionOS
 
 
Q