[SwiftUI | macOS] List modifiers are not applied

Number:rdar://FB9071516 Date Originated:2021-04-07
Status:Open Resolved:No
Product:SwiftUI Product Version:-
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
List-specific modifiers applied to a List view are not applied. Even the generic "background" modifier is ignored.

Please list the steps you took to reproduce the issue:
Render the following List:
List(0..<10, id: \.self) { idx in
.listRowInsets(EdgeInsets(top: 20, leading: 20, bottom: 20, trailing: 20))

What did you expect to happen?
1. The list should have a purple background.
2. Each row should be inset with 20px on all edges
3. Each row should have white background overlaid with a green with reduced opacity.
4. Each row text should be tinted blue

What actually happened?
All styling is ignored, including the overall background color applied to the component.

An example can be seen in the ListStyleView file in https://github.com/fjcaetano/not-awesome-swiftui


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!