Navigate to other view after row tap WITHOUT NavigationLink

Hi,


Is there a way to navigate to another view after tapping a row WITHOUT using NavigationLink (see here why the NavigationLink gives me a headache: https://forums.developer.apple.com/thread/128454)


I have tried


@State private var presentDetails: Bool = false


and

List(warehouseOrderController.warehouseOrders){ warehouseOrder in
OrderTableRow(warehouseOrder: warehouseOrder).onTapGesture {
print(warehouseOrder.orderRef!)
self.presentDetails = true
}.sheet(isPresented: self.$presentDetails){
WarehouseOrderView(warehouseOrder: warehouseOrder).environmentObject(self.settingStore)
}
}


but that always brings the new view up as a modal while I actually want it to look like as if I had used the NavigationLink (meaning: not floating over the other view).


Any ideas?


Max

Navigate to other view after row tap WITHOUT NavigationLink
 
 
Q