How to make List with single selection with SwiftUI 5
问题 I am creating single selection list to use in different places in my app. Questions: Is there an easy solution I don't know? If there isn't, how can I finish my current solution? My goal: List with always only one item selected or one or none item selected (depending on configuration) Transparent background On item select - perform action which is set as parameter via init() method. (That action requires selected item info.) Change list data programmatically and reset selection to first item