From 53302e3b2608440230dd3920c7c830e9861cb806 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 8 Nov 2023 17:05:58 -0500 Subject: [PATCH] visionOS: Remove trends loading indicator highlight --- Tusker/Screens/Explore/TrendsViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tusker/Screens/Explore/TrendsViewController.swift b/Tusker/Screens/Explore/TrendsViewController.swift index 6c83a32f..d528579c 100644 --- a/Tusker/Screens/Explore/TrendsViewController.swift +++ b/Tusker/Screens/Explore/TrendsViewController.swift @@ -584,6 +584,12 @@ extension TrendsViewController: UICollectionViewDelegate { func collectionView(_ collectionView: UICollectionView, contextMenuConfiguration configuration: UIContextMenuConfiguration, dismissalPreviewForItemAt indexPath: IndexPath) -> UITargetedPreview? { 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 {