79553786

Date: 2025-04-03 19:09:22
Score: 2
Natty:
Report link

Instead of applying a background modifier on List, you should apply a listRowBackground on its rows. For example:

List {
    ForEach(selectedSheet, id: \.self) { sheet in
        Text(sheet)
            .padding(10)
            .frame(maxWidth: .infinity)

    }
    .listRowBackground(Color.clear)
}

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gloomikon