In iOS 16 beta I am using the insert method but keep getting the purple warning "Publishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:)) on model updates.". Is this a bug or am I doing something wrong?
Post
Replies
Boosts
Views
Activity
@JoeKun Thank you for the above code! It worked great for me even using ApplicationMusicPlayer. I am running into a strange issue though. I have built in a way for the user to clear the queue, which works fine unless you play a radio station. Once you have selected a radio station to play, clearing the queue will get rid of the current two songs selected but will add two more. I'm not sure what to do to clear the queue. Any suggestions would be much appreciated. This is on iOS 16.5.