This isn't compiling for me in Swift 6. I get an error saying 'Non-sendable type 'UNNotificationResponse' in parameter of the protocol requirement satisfied by main actor-isolated instance method 'userNotificationCenter(_:didReceive:)' cannot cross actor boundary'
Post
Replies
Boosts
Views
Activity
I figured out play/pause. You have to implement togglePlayPauseCommand on MPRemoteCommandCenter
Thanks for the advice. 🙂