How to access MP3 metadata

I thought this task would be straightforward but I can't seem to find a direct and simple answer online. I have an MP3 file as an asset in my Xcode project and I want to access its metadata using swift. More specifically I want get the song title, artist, and artwork. My main problem is understanding how this info is stored whether through a series of arrays maps or a dictionary. Can anyone tell me how I can access these strings and this image variable?

I actually just found a solution that got me The artist, title, and image from SO. https://stackoverflow.com/questions/30243658/displaying-artwork-for-mp3-file However when I add another condition that checks for a key value of "genre" or "album" no value is grabbed. So in a way my question has been answered, but I'm still confused as to how this data is stored since I'm still having trouble accessing other metadata values. I'm assuming the metadata is stored in an associative array but I'm still unsure as to why I can't access other values.

How to access MP3 metadata
 
 
Q