Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Catalyst app on Big Sur losing focus.
I have a workaround for this bug that seems to work. Sharing it in hopes of helping others... So it seems this bad behavior occurs (in my case anyway) when you wrap a NavigationView with other custom UI. In my case I had a custom tab bar view which wrapped a NavigationView. Sometimes the content inside the NavigationView would become completely unresponsive to user interaction but the custom tab bar would remain functional. Now for the workaround: I found that if I set the custom tab bar view to disabled(true) then focus would be forced to change back to the NavigationView. So a workaround would be to temporarily disable all of the custom UI surrounding the NavigationView then re-enable it. You'd have to get creative with making this work reliably--something like a periodic async timer that enables/disables stuff. I'm still figuring out the best solution for my app. Just thought I'd share.
Sep ’21