SweetUI

Search items

Jump to an item

component

label

Controls Label icon placement with semantic spacing.

labelicontextalignmentstyle
label, light

On iPad

The same installed source at a regular width. It adapts its layout without a separate design.

label on iPad, light

Install

With the sweetui tool (brew install mangobyte-dev/tap/sweetui):

sweetui install label --destination Sources/YourFeature/Components

Installs in order: label 0.2.1. Point --destination at a folder inside the consuming target's sources.

Usage

Label("Account settings", systemImage: "person.crop.circle")
    .labelStyle(.registry)

Label("Continue", systemImage: "chevron.forward")
    .labelStyle(.registryTrailingIcon)

Accessibility contract

  • Title is accessible; icon decorative.
  • RTL mirrors leading/trailing.
  • Inherits caller's text style, Dynamic Type.

Details

Kindcomponent
Version0.2.1
PlatformsiOS 26.0+
Dependenciesnone
SourceRegistry/sources/components/RegistryLabelStyle.swift
Xcode previewLabel