Components
Divider
Used to bring clarity and structure to a layout
Component Status Details
Status component contains a list of checks and completeness that has been tested and owned by each component
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

let lgnDivider = LGNDivider()
LGNDivider
with Text

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

let lgnDivider = LGNDivider(textDivider: "Sign up",textColor: LGNUIColor.primary500,dividerLineColor: LGNUIColor.primary500.withAlphaComponent(0.5))
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
Attribute | Description | Default Value |
---|---|---|
dividerHorizontalPadding | The padding on the left and right sides of the divider | 0 |
dividerLineColor | The color of the divider line itself | LGNUIColor.tertiary200 |
dividerThickness | The thickness of the divider line | 1.0 |
font | The font style for the divider’s text | LGNUIFont.bodySmallRegular |
textColor | The color of the divider’s text | LGNUIColor.tertiary600 |
textDivider | The text displayed within the divider (can be empty if not needed) | "" |