Relative Content

Tag Archive for macosswiftuiswiftui-navigationlink

SwiftUi macOs: How to use a row in a Table() as a NavigationLink()

I’m trying to build an App with two rows NavigationSplitView. The sidebar is used to have categories and the main section as a table (!) of items. When an item (=row) in this table is doubleClicked I want to navigate to a “detailsView” of that particular item. The first approach of the app used a List where dozens of examples are flying around how to use NavigationLink() and .navigationDestination with it, however I couldn’t find any working example for swiftUi Table().