In SwiftUI, there are serval styles with List. They are DefaultListStyle, InsetListStyle, GroupedListStyle, InsetGroupedListStyle, SidebarListStyle and PlainListStyle.
I made an example for all these styles, and take screenshots to help you understand them easily.
DefaultListStyle
![](https://swift-cast.com/wp-content/uploads/2020/10/Screenshot-2020-10-18-15.03.48.png)
GroupedListStyle
![](https://swift-cast.com/wp-content/uploads/2020/10/Screenshot-2020-10-18-15.06.07.png)
InsetListStyle
![](https://swift-cast.com/wp-content/uploads/2020/10/Screenshot-2020-10-18-15.10.20.png)
InsetGroupedListStyle
![](https://swift-cast.com/wp-content/uploads/2020/10/Screenshot-2020-10-18-15.10.39.png)
SidebarListStyle
![](https://swift-cast.com/wp-content/uploads/2020/10/Screenshot-2020-10-18-15.11.02.png)
PlainListStyle
![](https://swift-cast.com/wp-content/uploads/2020/10/Screenshot-2020-10-18-15.11.14.png)
Note:
- InsetListStyle, InsetGroupedListStyle, SidebarListStyle are only available on iOS 14.0 and after.
- And when you put a List in a NavigationView with navigationBarItems, it will automate change List style to something like GroupedListStyle without any codes, you can set listStyle to DefaultListStyle to undo it.