Post

Replies

Boosts

Views

Activity

@ModelActor with default actor isolation = MainActor
If I set my build settings "default actor isolation" to MainActor, how do my @ModelActor actors and model classes need to look like ? For now, I am creating instances of my @ModelActor actors and passing my modelContext container and processing all data there. Everything stays in this context. No models are transferred back to MainActor. Now, after changing my project settings, I am getting a huge amount of warnings. Do I need to set all my model classes to non-isolated and the @ModelActor actor as well? Is there any new sample code to cover this topic ... did not find anything for now. Thanks in advance, Marc
2
0
98
Jun ’25
MPMusicPlayerController nowPlayingItem on Catalyst
Is there a known issue that the value of nowPlayingItem is always nil on Catalyst. The same app is working fine on iOS devices. Also the other MPMusicPlayerController functions like play, stop, and pause is working fine on Catalyst. I did not find any information that it should not work. Is this a known issue with existing workarounds. Thanks Marc
3
0
1.5k
Mar ’21