I think that the list row separator insets needs to be fixed in SwiftUI.
For example, when using the .sidebar
list style in a compact environment, the separators are inset to a fixed position, and depending on the list row's content, will look normal or out of place.
In one of last year's session videos (wwdc20-10026
), Apple even said how to use separators properly, insetting them to align with the primary content of the cell.
If there is a way that I don't know of to control this, I would very much like to know.
Otherwise this needs to be sorted either introducing a new view modifier, or automatically deciding how much to inset by based on the list row content: with Label
, inset to align with the title.