CreationKit Documentation

Class Divider

public final class Divider: UIView  

Divider is a line that groups content in lists and layouts.

Prefer to use make(style:) instead of this method.

It comes in four different styles:

  • fullWidth - displayed as a 1px line

  • middle - displayed as a 1px line with padding on both leading and trailing anchors

  • subheaderLeft - displays a custom subheader left indented (full width)

  • subheaderCentered - displays a custom centered subheader (full width)

Divider Divider UIView UIView Divider->UIView

Nested Types

Divider.Style

Styles of the Divider

Conforms To

UIView

Initializers

init(style:​)

public init(style: Style)  

Creates a new Divider with a Style.

Prefer to use make(style:) instead of this method.

Parameters

style Style

The style to give the Divider.

Properties

update​Text

public var updateText: String = ""  

Updates the text on the Divider

Methods

make(style:​)

public static func make(style: Style) -> Divider  

Creates a new Divider with a Style.

Parameters

style Style

The style to give the Divider.