Skip to content

Commit

Permalink
Update for macCatalyst 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rudrankriyam committed Sep 14, 2023
1 parent 7799c77 commit dee3a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/MusadoraKit/Add Resources/CreatePlaylist.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MusadoraKit/Library/LibrarySong.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Genre, Song>()
let response = try await request.response()
return response.sections
Expand Down

0 comments on commit dee3a2d

Please sign in to comment.