Divider

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

ComponentiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+Divider in SwiftUI

Declaration

React
import { Divider } from 'swiftui-react-native';
Swift
nonisolated struct Divider

Initializers

One SwiftUI initializer backs <Divider>.

React
<Divider />
Swift
nonisolated init()

Takes no props.

Also takes the common view props: modifiers, style and testID.

Overview

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

From Apple’s SwiftUI documentation. Code samples there are Swift.

Relationships

Conforms to

  • View

See also

More in Views.