From df1bc23499bbd4dbcdb5dca7ce27b51126cb93ac Mon Sep 17 00:00:00 2001 From: Rudrank Riyam Date: Tue, 12 Dec 2023 16:13:54 +0530 Subject: [PATCH] Remove macOS unavailability for library methods --- Sources/MusadoraKit/Library/LibraryAlbum.swift | 4 ---- Sources/MusadoraKit/Library/LibraryArtist.swift | 2 -- 2 files changed, 6 deletions(-) diff --git a/Sources/MusadoraKit/Library/LibraryAlbum.swift b/Sources/MusadoraKit/Library/LibraryAlbum.swift index 1fceedfb..2d3883e8 100644 --- a/Sources/MusadoraKit/Library/LibraryAlbum.swift +++ b/Sources/MusadoraKit/Library/LibraryAlbum.swift @@ -14,8 +14,6 @@ public extension MLibrary { /// - Parameters: /// - id: The unique identifier for the album. /// - Returns: `Album` matching the given identifier. - @available(macOS, unavailable) - @available(macCatalyst, unavailable) static func album(id: MusicItemID) async throws -> Album { if #available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 14, macCatalyst 17.0, *) { var request = MusicLibraryRequest() @@ -42,8 +40,6 @@ public extension MLibrary { /// - Parameters: /// - limit: The number of albums returned. /// - Returns: `Albums` for the given limit. - @available(macOS, unavailable) - @available(macCatalyst, unavailable) static func albums(limit: Int = 50) async throws -> Albums { if #available(iOS 16.0, macOS 14.0, macCatalyst 17.0, tvOS 16.0, watchOS 9.0, *) { var request = MusicLibraryRequest() diff --git a/Sources/MusadoraKit/Library/LibraryArtist.swift b/Sources/MusadoraKit/Library/LibraryArtist.swift index ea91c0ad..becd9f87 100644 --- a/Sources/MusadoraKit/Library/LibraryArtist.swift +++ b/Sources/MusadoraKit/Library/LibraryArtist.swift @@ -58,8 +58,6 @@ public extension MLibrary { /// /// For iOS 15, it uses the custom structure `MusicLibraryResourceRequest` /// that fetches the data from Apple Music API that does not fetch all the artists in one request. - @available(macOS, unavailable) - @available(macCatalyst, unavailable) static func artists(limit: Int = 50) async throws -> Artists { if #available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 14.0, macCatalyst 17.0, *) { var request = MusicLibraryRequest()