Skip to content

Divider - iOS ​

A divider creates separation of content.

AndroidreleasediOSreleased

iOS ​

Syntax ​

swift
Warp.Divider(
    orientation: Orientation = .horizontal,
    style: LineStyle = .solid
)

Basic usage ​

swift
Warp.Divider()

Visual options ​

Warp supports horizontal and vertical dividers. The divider can also be either solid or dashed.

swift
Warp.Divider(
    orientation: .vertical,
    style: .dashed
)

Legacy support ​

swift
Warp.Divider().uiView

Parameters ​

Optional Props ​

NameTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"The orientation of the divider, either horizontal or vertical.
style"solid" | "dashed""solid"The line style of the divider, either solid or dashed.

Questions? ​

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system