layout/DSDivider
DSDivider
layoutHorizontal or vertical rule using DSColor.border, with optional label.
iOS 17+macOS 14+
Purpose
Visual separation between content sections or within lists.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | String? | nil | Centred label (e.g. 'OR'). |
| axis | Axis | .horizontal | Horizontal or vertical. |
| color | Color | DSColor.border | Line colour. |
Examples
Login divider
OR divider between login methods.
swift
DSButton("Continue with Apple", variant: .secondary, icon: "apple.logo", action: signInWithApple)
DSDivider(label: "or")
DSTextField(placeholder: "Email", text: $email)