Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Components

Divider

Used to bring clarity and structure to a layout

banner-Divider
Component Status Details

Status component contains a list of checks and completeness that has been tested and owned by each component

check-list-icon We don't use color as the only visual tool to convey information.
check-list-icon The component’s structure and properties include relevant options such as variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.check-list-icon The title is the component name that uses the frame base component template.check-list-icon The base component name contains: .Base & "Component Name" if there is more than one.check-list-icon All component properties use the Legion foundation.
check-list-icon We can change all the parts that are connected to the component base.check-list-icon The inside of the base component remains connected to the master component.check-list-icon All variant options are not damaged when we change from one to another.check-list-icon Overriding changes to components will not reset other variants.
check-list-icon Component's already has component specs documentation.

Status

Resources

Upcoming

The LGNDivider is a custom view designed to visually separate content in a user interface. It provides flexibility in appearance, allowing for both text and line dividers, and can be customized to fit various design needs.

Usage

To use the Legion iOS UIKit theme, you need to import one of the available themes. Currently, the following themes are supported: ThemeAGR, ThemeEazy, ThemeIHS, ThemeLGN, and ThemeMyTEnS.

import ThemeLGN

LGNDivider Basic

LGNDivider Basic
let lgnDivider = LGNDivider()

LGNDivider with Text

LGNDivider with Text
let lgnDivider = LGNDivider(
textDivider: "Sign up"
)

LGNDivider with Custom Colors

LGNDivider with Custom Colors
let lgnDivider = LGNDivider(
textDivider: "Sign up",
textColor: LGNUIColor.primary500,
dividerLineColor: LGNUIColor.primary500.withAlphaComponent(0.5)
)

LGNDivider with Thickness

LGNDivider with Thickness
let lgnDivider = LGNDivider(
dividerThickness: 4.0
)

Features

  • Text Options: Include or exclude text in the divider.
  • Customizable Text Font: Set the font size for the text.
  • Divider Thickness: Define the thickness of the divider line.
  • Line Color: Choose the color of the divider line.
  • Horizontal Padding: Adjust padding on either side of the text.

Attributes

AttributeDescriptionDefault Value
dividerHorizontalPaddingThe padding on the left and right sides of the divider0
dividerLineColorThe color of the divider line itselfLGNUIColor.tertiary200
dividerThicknessThe thickness of the divider line1.0
fontThe font style for the divider’s textLGNUIFont.bodySmallRegular
textColorThe color of the divider’s textLGNUIColor.tertiary600
textDividerThe text displayed within the divider (can be empty if not needed)""