diff --git a/Sources/Site/Music/UI/ArchiveCategoryShareActivityModifier.swift b/Sources/Site/Music/UI/ArchiveCategoryShareActivityModifier.swift deleted file mode 100644 index 45183861..00000000 --- a/Sources/Site/Music/UI/ArchiveCategoryShareActivityModifier.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// ArchiveCategoryShareActivityModifier.swift -// -// -// Created by Greg Bolsinga on 8/3/24. -// - -import SwiftUI -import os - -extension Logger { - fileprivate static let sharing = Logger(category: "sharing") -} - -struct ArchiveCategoryShareActivityModifier: ViewModifier { - let category: ArchiveCategory - let vault: Vault - - func body(content: Content) -> some View { - let url = vault.categoryURLMap[category] - Logger.sharing.log( - "\(category.rawValue, privacy: .public), url: \(url?.absoluteString ?? "nil", privacy: .public)" - ) - return - content - .archiveShare(category, url: url) - } -} - -extension View { - func shareActivity(for category: ArchiveCategory, vault: Vault) -> some View { - modifier(ArchiveCategoryShareActivityModifier(category: category, vault: vault)) - } -} diff --git a/Sources/Site/Music/UI/CategoryDetailModifier.swift b/Sources/Site/Music/UI/CategoryDetailModifier.swift index 08ca583b..0bb77a18 100644 --- a/Sources/Site/Music/UI/CategoryDetailModifier.swift +++ b/Sources/Site/Music/UI/CategoryDetailModifier.swift @@ -16,7 +16,7 @@ struct CategoryDetailModifier: ViewModifier { func body(content: Content) -> some View { NavigationStack(path: $path) { content - .shareActivity(for: category, vault: vault) + .archiveShare(category, url: vault.categoryURLMap[category]) .musicDestinations(vault, path: path) #if !os(macOS) .nearbyDistanceThreshold(nearbyModel)