---
title: Divider
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/divider
---

# Divider

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

## Declaration

```swift
nonisolated struct Divider
```

## Mentioned in

Building layouts with stack views Populating SwiftUI menus with adaptive controls

## Overview

Overview When contained in a stack, the divider extends across the minor axis of the stack, or horizontally when not in a stack.

## Topics

### Creating a divider

- [init()](swiftui/divider/init().md)

## Relationships

### Conforms To

- [View](swiftui/view.md)

## See Also

### Separators

- [Spacer](swiftui/spacer.md)
