Hello
this is not really what is want to achieve. When you click on the list line/item, you actually click on the complete "line".
In the code you provided, you can have for each item only one function, Add or Remove.
I need to have both for each line item. Purpose is to create deeper hierarchy. Something like virtual nodes/folders and populate these with files or other struct{} types
Do I need to use another type of swift entity to display my list instead of List?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: