@melle Thanks for your answer! Indeed, if you remove DispatchQueue.main.async, it resolves the crash. I added it specifically to reproduce the crash in 100% of cases. However, if you retain it and comment out the entire ToolbarItem section, the crash also disappears. Even if you use ToolbarItem(placement: .principal), specifying .principal also resolves the crash.
Post
Replies
Boosts
Views
Activity
Hey, thank you! That solution resolved the crash in my project.