SwiftUI freezes just UI, unfreezes after background/foreground in iOS17

Hi,

I have the following odd scenario: Sometimes(tm) after using my app the interface feezes, often just while scrolling but other times while performing a tap gesture.

When this happens I can see in the debugger that the app is still active and things are happening in the background. Also, when move the app to the background and then open it again, the screen that should have opened is visible and fully functional. Example: I tap an element in a List, then freeze. Background/foreground switch. I now can see the correct detail view that is fully functional. Using another element to eg. go back to the List, freeze again at the old view, and same thing.

I can also not see the freeze when Instrumenting. I can see the app working continuous and even core animation commits happening.

I thought is is because I have not migrated to the NavigationPath pattern but I now have done this for most of the app (at least removing all deprecation warnings) but it still happens.

Any idea what might be a reasons for such a behavior? Thanks!

Post not yet marked as solved Up vote post of scurra Down vote post of scurra
530 views

Replies

Hello. Please tell, were you able to solve this problem? Having the same issue