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)
Relationships
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
Name | Type | Description |
---|---|---|
style | Style |
The style to give the Divider. |
Properties
Methods
make(style:)
public static func make(style: Style) -> Divider
Creates a new Divider with a Style.
Parameters
Name | Type | Description |
---|---|---|
style | Style |
The style to give the Divider. |