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
struct View1: NavigatableView {
var body: some View {
VStack {
Text("View1")
Button(action: {
View2().push(with: .horizontalSlide)
}) {
Text("Go to second view")
}
}
}
}
struct View2: NavigatableView {
var body: some View {
VStack {
Text("View2")
Button(action: {
View3().push(with: .horizontalSlide)
}) {
Text("Go to third view")
}
}
}
}
struct View3: NavigatableView {
var body: some View {
Button(action: {
pop(to: View1.self)
}){
Text("Go to View 1")
}
}
}
pop(to:_) does not work. Sometimes it does not pop any view, sometimes it pops to the previous view as if I ran pop(). Steps to reproduce are above. Below is a demo of the code above:
For the given code:
pop(to:_) does not work. Sometimes it does not pop any view, sometimes it pops to the previous view as if I ran
pop(). Steps to reproduce are above. Below is a demo of the code above:ScreenRecording_07-21-2024.19-21-16_1.mp4