I have a very basic List with a few NavigationLink items inside. When clicking "⌘ + Mouse left-click" on a selected list item, it gets deselected. I'd like this behaviour disabled, so nothing should happen. How can I do that?
Code Block struct Sidebar: View { var body: some View { VStack(alignment: .leading) { List { NavigationLink(destination: Text("Destination"), label: { Text("Link1") }) NavigationLink(destination: Text("Destination"), label: { Text("Link2") }) NavigationLink(destination: Text("Destination"), label: { Text("Link2") }) } .listStyle(SidebarListStyle()) } } }