> For example, if you have a MusicKit Song, you could pass song.id.rawValue as the productID parameter to the MPMediaPlaylist's addItem(withProductID: )
This would be great to explicitly state in the docs - I wasn't clear on this point and was very confused about how to integrate MusicKit and the Media Player API until I stumbled across this comment.
Topic:
Programming Languages
SubTopic:
Swift
Tags: