iOS 16/17 .destination not working after view is hidden/shown (menu) but it works on iOS 18 #3502
Replies: 4 comments
-
fyi, I tried to target iOS 17 and remove all
and
I do enter several times inside both, the difference being that the first time, I eventually enter the |
Beta Was this translation helpful? Give feedback.
-
Hi @jerometonnelier, |
Beta Was this translation helpful? Give feedback.
-
Hi @jerometonnelier, as @OguzYuuksel mentioned, a reproducing project is the best way for someone to look into this. However, the fact that this works in iOS 18 and not 16/17 leads to me to believe it is a SwiftUI bug and probably not related to this library. Because of that I am going to convert this to a discussion for the time being and please feel free to keep the conversation going over there. |
Beta Was this translation helpful? Give feedback.
-
Thanks to both of you, no worries for the discussion. I'll try to make a small project and see if I can reproduce it since my client does not want his code to be shared :-/ I'll keep you posted asap. Thanks again |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions