Divider

public class Divider : UIView

Divider is a class that represents Divider component from the design system. It has a predetermined height and it’s necessary to configure its width using constraints.

The Divider componet has 3 styles:

  • full-bleed
  • middle
  • inset

Example of usage:

     divider.configure(style: .full-bleed)
     divider.configure(style: .middle)
     divider.configure(style: .inset)

Requires

It’s necessary to configure the Design System with a theme or fatalError will be raised.

DesignSystem().configure(with: AvailableTheme)
  • Undocumented

    Declaration

    Swift

    public init()

Public methods

  • Sets a style for the divider

    Declaration

    Swift

    public func configure(style: Styles)

    Parameters

    style

    an option from the available styles for divider

  • Style is a enum that represents style values for the divider component. Each style has a predefined spacing from right and left margins on the screen.

    These are all styles allowed for a Divider:

    • full-bleed
    • inset
    • middle
    See more

    Declaration

    Swift

    public enum Styles