(I have tried searching for this, but unrelated search results are overwhelming.)
I have a List
. I want to open a sheet
(or fullScreenCover
) when the user taps on a list row.
The row needs to look and behave like a regular NavigationLink
, complete with chevron. But instead of pushing to a new View/Screen, a modal sheet
will be presented instead.
Note: this pattern is used by Apple itself. For example, in the Reminders app:
This will present a modal sheet
:
Crucially, this row looks and behaves as it were a NavigationLook
, including highlighting the entire row on tap, with a standard-looking chevron.
Question: how can I reproduce this row?