diff --git a/Sources/MusadoraKit/Add Resources/CreatePlaylist.swift b/Sources/MusadoraKit/Add Resources/CreatePlaylist.swift index 9afb06f3..02e00b9e 100644 --- a/Sources/MusadoraKit/Add Resources/CreatePlaylist.swift +++ b/Sources/MusadoraKit/Add Resources/CreatePlaylist.swift @@ -12,7 +12,7 @@ import Foundation -@available(macOS 14.0, *) +@available(macCatalyst 17.0, macOS 14.0, *) public extension MLibrary { /// Creates a new playlist in the user’s music library. @@ -389,7 +389,7 @@ public extension MLibrary { /// - playlist: A `Playlist` object representing the playlist to which the songs should be added. /// - Returns: An updated `Playlist` object. /// - Throws: An error if the item could not be added to the playlist. - @available(macOS 14.0, *) + @available(macCatalyst 17.0, macOS 14.0, *) @discardableResult static func add(item: some MusicPlaylistAddable, to playlist: Playlist) async throws -> Playlist { try await MusicLibrary.shared.add(item, to: playlist) diff --git a/Sources/MusadoraKit/Library/LibrarySong.swift b/Sources/MusadoraKit/Library/LibrarySong.swift index c8ec56d5..46e95cb1 100644 --- a/Sources/MusadoraKit/Library/LibrarySong.swift +++ b/Sources/MusadoraKit/Library/LibrarySong.swift @@ -394,7 +394,7 @@ public extension MLibrary { @available(macOS, unavailable) @available(macCatalyst, unavailable) static func songsForGenres() async throws -> SongsForGenres { - if #available(macOS 14.0, *) { + if #available(macOS 14.0, macCatalyst 17.0, *) { let request = MusicLibrarySectionedRequest() let response = try await request.response() return response.sections