MusicLibrary.Error.permissionDenied
An error that occurs when the user doesn’t consent for the current app to access their Apple Music library.
Declaration
case permissionDeniedDiscussion
Apps using MusicKit need to request prior informed consent from the user to access their Apple Music library by calling request() at the appropriate point in the app flow, right before needing to use other APIs from MusicKit.