mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 02:14:45 +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)
|
.scrollContentBackground(.hidden)
|
||||||
.background(theme.primaryBackgroundColor)
|
.background(theme.primaryBackgroundColor)
|
||||||
.introspect(.list, on: .iOS(.v16, .v17)) { (collectionView: UICollectionView) in
|
.introspect(.list, on: .iOS(.v16, .v17)) { (collectionView: UICollectionView) in
|
||||||
self.collectionView = collectionView
|
DispatchQueue.main.async {
|
||||||
|
self.collectionView = collectionView
|
||||||
|
}
|
||||||
self.prefetcher.viewModel = viewModel
|
self.prefetcher.viewModel = viewModel
|
||||||
collectionView.isPrefetchingEnabled = true
|
collectionView.isPrefetchingEnabled = true
|
||||||
collectionView.prefetchDataSource = self.prefetcher
|
collectionView.prefetchDataSource = self.prefetcher
|
||||||
|
|
Loading…
Reference in a new issue