From a2cc3a04365d34a8edfeb41a184ed16ddad6cd77 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 3 Feb 2024 12:29:06 -0500 Subject: [PATCH] visionOS: Exclude unused code --- .../Explore/SuggestedProfileCardCollectionViewCell.swift | 2 ++ Tusker/Screens/Explore/TrendingLinkCardCollectionViewCell.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tusker/Screens/Explore/SuggestedProfileCardCollectionViewCell.swift b/Tusker/Screens/Explore/SuggestedProfileCardCollectionViewCell.swift index 7d2477d7..62879b03 100644 --- a/Tusker/Screens/Explore/SuggestedProfileCardCollectionViewCell.swift +++ b/Tusker/Screens/Explore/SuggestedProfileCardCollectionViewCell.swift @@ -6,6 +6,7 @@ // Copyright © 2023 Shadowfacts. All rights reserved. // +#if !os(visionOS) import UIKit import Pachyderm import SwiftUI @@ -221,3 +222,4 @@ private struct SuggestionSourceView: View { } } } +#endif diff --git a/Tusker/Screens/Explore/TrendingLinkCardCollectionViewCell.swift b/Tusker/Screens/Explore/TrendingLinkCardCollectionViewCell.swift index 0604595d..d8ab71fc 100644 --- a/Tusker/Screens/Explore/TrendingLinkCardCollectionViewCell.swift +++ b/Tusker/Screens/Explore/TrendingLinkCardCollectionViewCell.swift @@ -6,6 +6,7 @@ // Copyright © 2022 Shadowfacts. All rights reserved. // +#if !os(visionOS) import UIKit import Pachyderm import WebURLFoundationExtras @@ -172,3 +173,4 @@ extension TrendingLinkCardCollectionViewCell { case regular, compact } } +#endif