Displaying and working with Favorites in iOS app

New to iOS development and I've been trying to make heads or tails of the documentation. I know there is a difference between the data fields returned from songs from the user library and from the category, but whenever I search on the apple site I can't find a list of each. For example, Im trying to get the releaseDate of a song in my library, but it seems I'll have to cross-query either the catalog entry for the using song.catalogID or the song.irsc but when I try to use them I can't find a cross reference between the two. I'm totally turned around.

Also trying to determine if a song in my library has been favorited or not? isFavorited (or something similar) doesn't seem to be a thing. Using this code and trying to find a way to display a solid star if the song has been favorited or an empty one if it's not. Seems like a basic request but I can't find anything on how to do it. I've searched docs, googled, tried.

Does apple want us to query the user's Favorited Songs playlist or something? How do I know which playlist that is?

I know isFavorited isn't a thing, just using it here so you can see what my intension is:

HStack(spacing: 10) {
     Image(systemName: song.isFavorited ? "star.fill" : "star")
       .foregroundColor(song.isFavorited ? .yellow : .gray)
     Image(systemName: "magnifyingglass")    
}

returned from songs from the user library

How!? Unless you explain how, I'm afraid the song variable that you refer to means nothing to the rest of the world. If you access this URL ( https://itunes.apple.com/search?term=classical+music&entity=song ), in the meantime, with URLSession, it will return two objects: resultCount and results. And you can easily return a dataset in the form of a JSON object. The results returns an array of dictionaries including a property named 'releaseDate.' Additionally, provided that you got your dataset with MPMediaQuery.songs, I would search for the 'MPMediaItem' class. Other than that, you probably want to explain how you get your data.

Displaying and working with Favorites in iOS app
 
 
Q