Structure
OUDSHorizontalDivider
Divider is a UI element that allows to structure the content by visually separating the content zones. Divider improves readability and content organization without introducing a stronger visual hierarchy like a heading or a container would. A horizontal Divider is used to separate content laid out one under the other (VStack). The divider can be colored using dedicated OUDSDividerColor colors. The thickness (height) is fixed by dedicated token from OUDSTheme.
- iOS 15.0+
- macOS 13.0+
- tvOS 16.0+
- visionOS 1.0+
- watchOS 11.0+
@MainActor struct OUDSHorizontalDivider
Mentioned In
Code samples
VStack {
Text("Hello wolrd!")
OUDSHorizontalDivider(color: .brandPrimary)
Text("Happy to see you")
}
Design documentation
unified-design-system.orange.com
Themes rendering
Orange

Orange Compact

Sosh

Wireframe

Version
1.0.0 (Figma component design version)
Since
0.14.0
Topics
Initializers
Instance Properties