---
title: "Divider Components | Explore SwiftUI"
description: "A visual element that can be used to separate other content. Explore 4 SwiftUI divider components with visual code examples."
canonical_url: "https://exploreswiftui.com/library/divider"
meta:
  author: "Explore SwiftUI"
  "og:description": "A visual element that can be used to separate other content. Explore 4 SwiftUI divider components with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_Divider%2BComponents%2Cdescription_Explore%2B4%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L2RpdmlkZXIi%2Cs_fS7GPmDZMHlGGsMa.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Divider Components | Explore SwiftUI"
  "twitter:description": "A visual element that can be used to separate other content. Explore 4 SwiftUI divider components with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_Divider%2BComponents%2Cdescription_Explore%2B4%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L2RpdmlkZXIi%2Cs_fS7GPmDZMHlGGsMa.png"
  "twitter:title": "Divider Components | Explore SwiftUI"
---

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

# **Divider Components**

A visual element that can be used to separate other content.

4 components

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

### **Divider**

A visual element that can be used to separate other content

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

### **Divider Height**

Customizing the height of the Divider

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

### **Divider Color**

Customizing the color of the Divider

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

### **Vertical Divider**

A vertical visual element that can be used to separate other content

```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/divider#webpage","@type":"WebPage","description":"A visual element that can be used to separate other content. Explore 4 SwiftUI divider components with visual code examples.","name":"Divider Components","url":"https://exploreswiftui.com/library/divider","breadcrumb":{"@id":"https://exploreswiftui.com/library/divider#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/divider"]}],"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/divider#collectionpage","@type":"CollectionPage","description":"A visual element that can be used to separate other content. Explore 4 SwiftUI divider components with visual code examples.","inLanguage":"en-US","name":"Divider Components","url":"https://exploreswiftui.com/library/divider","about":{"@type":"Thing","name":"SwiftUI"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"}},{"@id":"https://exploreswiftui.com/library/divider#/schema/item-list/1","@type":"ItemList","name":"Divider Components","itemListElement":[{"@type":"ListItem","position":1,"name":"Divider","url":"https://exploreswiftui.com/library/divider/divider"},{"@type":"ListItem","position":2,"name":"Divider Height","url":"https://exploreswiftui.com/library/divider/divider-height"},{"@type":"ListItem","position":3,"name":"Divider Color","url":"https://exploreswiftui.com/library/divider/divider-color"},{"@type":"ListItem","position":4,"name":"Vertical Divider","url":"https://exploreswiftui.com/library/divider/vertical-divider"}]},{"@id":"https://exploreswiftui.com/library/divider#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Divider","item":"https://exploreswiftui.com/library/divider","position":2}]},{"@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"}]}
```