This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
iOS 16/17 .destination not working after view is hidden/shown (menu) but it works on iOS 18 #3496
Closed
1 of 3 tasks
Description
Hi everyone,
weird bug here.
I've got a SwiftUI view that represents a Menu (embed inside a UIViewController since the rest of the project is UIKit based) and used along with SideMenu.
I used one of the latest TCA implementation with @Perception.Bindable var store: StoreOf, @Reducer reducers, @ObservableState states, @presents and CasePath macros to push some views onto a NavigationStack.
With iOS 18, everything works fine, I can push some views on the SwiftUI Stack, show the UIKit Rootview of the UIKit core part.
But with iOS17, I get this issue : when I first launch the app, everything works fine the first time I show the menu. I can navigate inside, no worries. But if I close the menu and open it again, no more view is pushed onto the stack (or dismissed for that matter. The action is triggered, the @presents variable is filled, but I never enter the .destination modifier.
Here is the one of the modifiers
the Case Path macro
Is there some breakpoint I can make or logs to activate to try to see what happens ?
I'll check with the company if it's possible to send the source code, that would be easier.
Thanks
Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Reproducing project
No response
The Composable Architecture version information
1.15.2
Destination operating system
iOS 17
Xcode version information
Xcode 16.2
Swift Compiler version information
The text was updated successfully, but these errors were encountered: