What is the correct way to use the new ArtworkImage
view with songs from the user's library?
I'm fetching the songs using MPMediaQuery.songs
, since I want the user's entire library, which provides MPMediaItems
with an MPMediaItemArtwork
. I can't see a way to get an Artwork
for use with ArtworkImage
from this. I could manually fetch the artwork by using a MusicCatalogResourceRequest
for each song or I could (very slowly) fetch the user's library using MusicDataRequest
with /v1/me/library/songs?include=catalog
, but neither seem correct.
(I could use MusicCatalogResourceRequest
per album, which would reduce the requests, but I'd like to display track specific artwork when available (e.g. Brian Eno's Music for Installations))
Thank you