in your code sample, replacing @Published var path = [Item]() with @Published var path = NavigationPath() fixes the issue
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: