Post marked as solved
Post marked as solved with 2 replies, 981 views
Ive been looking at MusicKit hoping there is a way I can get a list of all Artists, Albums or Songs for a users Library.
I can get these for a search term (see code), but what if I want to just return all Albums from the catalog ? I can't seem to find a method or search term to do this. Is it possible ?
Thanks
do {
let searchRequest = MusicCatalogSearchRequest(term: "Muse", types: [Album.self])
let searchResponse = try await searchRequest.response()
print(searchResponse.albums.count)
print(searchResponse.albums)
} catch {
print("Failed to load albums")
}