NavigationStack inside sheet appends first destination without transition on iOS 16 #3232
KirillZholnerovich
started this conversation in
General
Replies: 1 comment
-
Hi @KirillZholnerovich, this is a bug in vanilla SwiftUI and there’s nothing we can do to fix it in the library. I am going to convert this to a discussion since it’s not an issue with the library. Feel free to continue the conversation over there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It works well on iOS 17, but does not work correctly on iOS16
I've created an example project to reproduce this bug
Screen A
`
@Reducer
public struct ScreenAFeature {
@ObservableState
public struct State: Equatable {
@presents public var screenB: ScreenBFeature.State? = nil
public init() {}
}
}
public struct ScreenAView: View {
@Perception.Bindable var store: StoreOf
}
Screen B
@Reducer
public struct ScreenBFeature {
@ObservableState
public struct State: Equatable {
public var path: StackState<Path.State> = StackState()
}
public struct ScreenBView: View {
@Perception.Bindable public var store: StoreOf
}
`
Screen C
`
@Reducer
public struct ScreenCFeature {
@ObservableState
public struct State: Equatable {
public init() {}
}
}
public struct ScreenCView: View {
public let store: StoreOf
}
`
Behaviour on iOS 16
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2024-07-11.at.14.33.49.mp4
Behaviour on iOS 17
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-07-11.at.14.36.24.mp4
Checklist
main
branch of this package.Expected behavior
Appearing works with transition.
Actual behavior
Appearing works without transition.
Steps to reproduce
The Composable Architecture version information
1.11.2
Destination operating system
iOS 16
Xcode version information
15.4
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions