How to change a List’s background color in SwiftUI

Federica Benacquista
2 min readMay 31, 2022

In my journey in learning SwiftUI I’m encountering small issues like not knowing how to change the background color of a List.

After some research I can now fully customise my Lists.

Changing the background color of a List:

There are several approaches you can go for:

  1. Initialise the TableView color. you can either do this in the struct you placed the list in or in the App file. The latter approach will set the color for all of the Lists in…

--

--

Federica Benacquista

I’m a self taught iOS developer and soon to be entrepreneur. I like to explain tricky concepts as easily as possible and it’s exactly what I do here.