HorizontalPosition

public enum HorizontalPosition : CaseIterable

Represents horizontal alignment or placement direction.

Used to position UI elements such as labels relative to controls (e.g., leading or trailing side of a checkbox or radio button).

  • Example: swift Checkbox(isChecked: $checked, label: "Accept Terms", labelPosition: .leading)
  • Leading edge (left in left-to-right layouts).

    Declaration

    Swift

    case leading
  • Trailing edge (right in left-to-right layouts).

    Declaration

    Swift

    case trailing