In the following example, the NavigationStack path ["one", "two", "three"]
is written to model.path
variable.
When the application loads without TabView
, the deep link works just fine and we end up at page "three", third element in the Stack.
However, if the same NavigationStack using the same stack is contained in a TabView, it breaks.
See the example below, with variable working
not using the TabView
and notWorking
with the TabView
import Foundation
import SwiftUI