`NavigationSplitView` with `ZStack` in detail view causes `.sheet(item` to hang
I have a problem with a MacCatalyst app I build and run on MacOS 14.6 with XCode 16.4. The problem doesn’t occur on MacOS 13.6 or iOS 16 or 17. In this app if I click a button to show a .sheet(item a few times (typically between 3 and 8 times) then the app starts consuming 100% CPU and the Spinning Wait Cursor shows. The cause of the issue is that my NavigationSplitView
has a ZStack
so that state is maintained for all panels, as recommended here and here. Minimum reproducible example is below. I would appreciate any suggestions on how to address this. This app must support iOS 16 and MacOS 13.6 as well. Thank you!
Why doesn’t NavigationSplitView update value when navigating to same View in details?
I have a NavigationSplitView and router for navigation with code.