You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered a weird bug that nativation was not working after user,
open the app
background it
open again
then non of the progromatic push in entire project is not working
structSliderView:View{@EnvironmentObjectprivatevarnavigationStack:NavigationStackvarbody:someView{...
navigationStack.push(SomeView()) // not working
...}}
and I fix the bug by removing this @Environment(\.scenePhase) var scenePhase where NavigationStackView is located
structMainView:View{@StateObjectvarobservable:MainObservable= koin.get()@Environment(\.scenePhase)varscenePhase // this line is removed and bug is fixed
varbody:someView{NavigationStackView(
transitionType:.default,
easing:Animation.easeInOut(duration: 0.5)){....}}}
I do not need any more scenePhase so it is not a blocker for me, but i thought it will be good to make you aware of this issue
The text was updated successfully, but these errors were encountered:
Hello 👋
I discovered a weird bug that nativation was not working after user,
push
in entire project is not workingand I fix the bug by removing this
@Environment(\.scenePhase) var scenePhase
whereNavigationStackView
is locatedI do not need any more
scenePhase
so it is not a blocker for me, but i thought it will be good to make you aware of this issueThe text was updated successfully, but these errors were encountered: