SwiftUI: UITableViewCell.AccessoryType.detailDisclosureButton

I am trying to convert the UI an App of mine to SwiftUI.

My app displays an UITableView, where the cells have the property


"UITableViewCell.AccessoryType.detailDisclosureButton"


That means: "An information button and a disclosure (chevron) control are displayed on every row."

Pressing the button shows Information about the cell Data (modal)

Pressing the chevron pushes a Detail-View onto the NavigationView-Stack and displays it.


How do I achieve this behavior using SwiftUI?

You'll need to implement a NavigationView with at lest one NavigationLink inside it.

So, a NavigationLink does get you a Disclosure Indicator, but how do you get a Detail Disclosure Button without rolling your own button into the NavigationLink's View? For UI consistency across Apps, that would not be good.


I'm waiting in wild anticipation for NavigationLink to have a .DetailDisclosure(Destination) View Modifier.

SwiftUI: UITableViewCell.AccessoryType.detailDisclosureButton
 
 
Q