mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-03-28 12:35:27 +00:00
Fix Introspect warning
This commit is contained in:
parent
4e1205dca8
commit
4a6f81f22e
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ public struct TimelineView: View {
|
|||
.scrollContentBackground(.hidden)
|
||||
.background(theme.primaryBackgroundColor)
|
||||
.introspect(.list, on: .iOS(.v16, .v17)) { (collectionView: UICollectionView) in
|
||||
self.collectionView = collectionView
|
||||
DispatchQueue.main.async {
|
||||
self.collectionView = collectionView
|
||||
}
|
||||
self.prefetcher.viewModel = viewModel
|
||||
collectionView.isPrefetchingEnabled = true
|
||||
collectionView.prefetchDataSource = self.prefetcher
|
||||
|
|
Loading…
Reference in a new issue