Hello @aleroot,
In iOS 15 and aligned releases for other Apple platforms, MusicKit is focused on giving access to the Apple Music catalog.
For this reason, the easiest way to create a playlist and add songs to it is probably to use existing APIs in the MediaPlayer framework.
Specifically, you could use:
Furthermore, you can definitely use the new MusicKit framework alongside MediaPlayer framework. For example, if you have a MusicKit Song, you could pass song.id.rawValue
as the productID
parameter to the MPMediaPlaylist's addItem(withProductID: ).
I hope this helps.
Best regards,