---
title: "BorderedListStyle | Explore SwiftUI"
description: "The list style that describes the behavior and appearance of a list with standard border"
canonical_url: "https://exploreswiftui.com/library/list/borderedliststyle"
meta:
  author: "Explore SwiftUI"
  "og:description": "The list style that describes the behavior and appearance of a list with standard border"
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_BorderedListStyle%2Cdescription_The%2Blist%2Bstyle%2Bthat%2Bdescribes%2Bthe%2Bbehavior%2Band%2Bappearance%2Bof%2Ba%2Blist%2Bwith%2Bstandard%2Bborder.%2Ccategory_List%2Cimage_~L2FwaS9pbWFnZXMvMTAxL3ZhcmlhbnRzLzMwOD92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L2xpc3QvYm9yZGVyZWRsaXN0c3R5bGUi%2Cs_ZNhWSW9rMkVn6cf4.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "BorderedListStyle | Explore SwiftUI"
  "twitter:description": "The list style that describes the behavior and appearance of a list with standard border"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_BorderedListStyle%2Cdescription_The%2Blist%2Bstyle%2Bthat%2Bdescribes%2Bthe%2Bbehavior%2Band%2Bappearance%2Bof%2Ba%2Blist%2Bwith%2Bstandard%2Bborder.%2Ccategory_List%2Cimage_~L2FwaS9pbWFnZXMvMTAxL3ZhcmlhbnRzLzMwOD92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L2xpc3QvYm9yZGVyZWRsaXN0c3R5bGUi%2Cs_ZNhWSW9rMkVn6cf4.png"
  "twitter:title": "BorderedListStyle | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

# **BorderedListStyle**

The list style that describes the behavior and appearance of a list with standard border.

![BorderedListStyle - Preview Not Available](https://exploreswiftui.com/api/images/101/variants/308?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

macOS 12.0+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/liststyle/bordered)

```
List {
  Section {
    Toggle("Toggle", isOn: .constant(true))
    TextField("TextField", text: .constant(""))
    Button("Button", action: action)
    Picker("Picker", selection: .constant(0)) {
      Text("Option 1").tag(0)
    }
  }

  Text("Foo")

  Section {
    Text("Bar1")
    Text("Bar2")
  } header: {
    Text("Header")
  } footer: {
    Text("Footer")
  }
}
.listStyle(.bordered)
```

### **Found an issue or have a suggestion?**

Created: August 6, 2025Updated: August 6, 2025

![Connect Wizard](https://exploreswiftui.com/_ipx/f_webp&q_80&s_48x48/images/connect-wizard-icon.png)

**Connect Wizard**

**Unlock insights App Store Connect doesn’t show you.**

[** Get Started **](https://apps.apple.com/app/apple-store/id6747314580?pt=121213751&ct=Explore%20SwiftUI%20Banner&mt=8)

### **More List Components **

[**View all **](https://exploreswiftui.com/library/list)

![Outline Group - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/132/variants/371?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Outline Group**

A structure that computes views and disclosure groups on demand from an underlying collection of tree-structured, identified data.

![Disclosure Group - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/131/variants/363?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Disclosure Group**

A view that shows or hides another content view, based on the state of a disclosure control.

![Edit Button - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/130/variants/367?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Edit Button**

A button that toggles the edit mode environment value.

![Section Index Label and Visibility - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/129/variants/369?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Section Index Label and Visibility**

Sets the label that is used in a section index to point to this section, typically only a single character long. Changes the visibility of the list section index.

![Move Disabled - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/128/variants/361?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Move Disabled**

Adds a condition for whether the view’s view hierarchy is movable.

![Delete Disabled - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/127/variants/351?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Delete Disabled**

Adds a condition for whether the view’s view hierarchy is deletable.

![Refreshable List - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/126/variants/359?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Refreshable List**

Marks this view as refreshable.

![Swipe Action - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/125/variants/357?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Swipe Action**

Adds custom swipe actions to a row in a list.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![ViewThatFits Vertical - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/6/variants/20?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ViewThatFits Vertical**

A view that adapts to the available vertical space by providing the first child view that fits.

![Reserved Regions - iOS on iPhone Duo - Landscape - Partially Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/253/variants/1811?v=1790587855674&r=2&w=412&q=75&f=webp)

### **Reserved Regions**

Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own

![Label Styles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/149/variants/472?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Label Styles**

Sets the style for labels within this view.

![Custom Header Subscription Store View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/229/variants/647?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Custom Header Subscription Store View**

Creates a view that loads all the subscriptions in a subscription group from the App Store, and merchandises them with custom marketing content.

![Capsule Text Field - macOS - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/240/variants/186?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Capsule Text Field**

Gives your text field a capsule shape. This only has a visible effect on macOS, where the capsule shape is not the default.

![Only Horizontal Split Arrangement Style - iOS on iPhone Duo - Portrait - Fully Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/245/variants/1614?v=1791207712827&r=2&w=412&q=75&f=webp)

### **Only Horizontal Split Arrangement Style**

Creates a horizontal split arrangement only in portrait orientation. In landscape orientation, no split is applied.

![CompactProductViewStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/207/variants/516?v=1790073478842&r=2&w=412&q=75&f=webp)

### **CompactProductViewStyle**

A style for a product view that’s suitable for layouts with less available space, or for displaying more items in a small amount of space.

![Sheet Drag Indicator Visibility - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/138/variants/428?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Sheet Drag Indicator Visibility**

Sets the visibility of the drag indicator on top of a sheet.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/list/borderedliststyle#webpage","@type":"WebPage","dateModified":"2025-08-06T10:23:48.713Z","datePublished":"2025-08-06T10:18:50.897Z","description":"The list style that describes the behavior and appearance of a list with standard border","name":"BorderedListStyle","url":"https://exploreswiftui.com/library/list/borderedliststyle","breadcrumb":{"@id":"https://exploreswiftui.com/library/list/borderedliststyle#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/list/borderedliststyle"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/list/borderedliststyle#article","dateModified":"2025-08-06T10:23:48.713Z","datePublished":"2025-08-06T10:18:50.897Z","description":"The list style that describes the behavior and appearance of a list with standard border","headline":"BorderedListStyle","inLanguage":"en-US","name":"BorderedListStyle","thumbnailUrl":"https://exploreswiftui.com/api/images/101/variants/308?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/list/borderedliststyle","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@type":"WebSite","name":"Explore SwiftUI","url":"https://exploreswiftui.com"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/list/borderedliststyle#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/list/borderedliststyle#/schema/software-source-code/1","@type":"SoftwareSourceCode","codeRepository":"https://developer.apple.com/documentation/swiftui/liststyle/bordered","codeSampleType":"full example","description":"The list style that describes the behavior and appearance of a list with standard border","name":"BorderedListStyle SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"List {\n  Section {\n    Toggle(\"Toggle\", isOn: .constant(true))\n    TextField(\"TextField\", text: .constant(\"\"))\n    Button(\"Button\", action: action)\n    Picker(\"Picker\", selection: .constant(0)) {\n      Text(\"Option 1\").tag(0)\n    }\n  }\n\n  Text(\"Foo\")\n\n  Section {\n    Text(\"Bar1\")\n    Text(\"Bar2\")\n  } header: {\n    Text(\"Header\")\n  } footer: {\n    Text(\"Footer\")\n  }\n}\n.listStyle(.bordered)","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"List"},{"@type":"Thing","name":"BorderedListStyle"}]},{"@id":"https://exploreswiftui.com/library/list/borderedliststyle#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"List","item":"https://exploreswiftui.com/library/list","position":2},{"@type":"ListItem","name":"BorderedListStyle","item":"https://exploreswiftui.com/library/list/borderedliststyle","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/101/variants/308?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/101/variants/308?v=1790073478842&r=2"}]}
```