visionOS: Remove trends loading indicator highlight

This commit is contained in:
Shadowfacts 2023-11-08 17:05:58 -05:00
parent c0301ce7e7
commit 53302e3b26
1 changed files with 6 additions and 0 deletions

View File

@ -584,6 +584,12 @@ extension TrendsViewController: UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, contextMenuConfiguration configuration: UIContextMenuConfiguration, dismissalPreviewForItemAt indexPath: IndexPath) -> UITargetedPreview? { func collectionView(_ collectionView: UICollectionView, contextMenuConfiguration configuration: UIContextMenuConfiguration, dismissalPreviewForItemAt indexPath: IndexPath) -> UITargetedPreview? {
return self.collectionView(collectionView, contextMenuConfiguration: configuration, highlightPreviewForItemAt: indexPath) return self.collectionView(collectionView, contextMenuConfiguration: configuration, highlightPreviewForItemAt: indexPath)
} }
#if os(visionOS)
func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
return self.collectionView(collectionView, shouldSelectItemAt: indexPath)
}
#endif
} }
extension TrendsViewController: UICollectionViewDragDelegate { extension TrendsViewController: UICollectionViewDragDelegate {