… /11-adding-menu-controls/projects/starter/MarkDowner/MarkDownerApp.swift:35: warning run: This method should not be called on the main thread as it may lead to UI unresponsiveness.
This appears to be due to code in the KeyWindow package.
In the next version of the book, designed for Ventura, I’ll be dropping this package and using the new controlActiveState EnvironmentValue instead.
Check out my blog post if you want to see how this works: