According to the documentation your code is lacking the .listStyle(.insetGrouped) modifier on the list as follows:
List { // (...) } .listStyle(.insetGrouped)