SweetUI

Search items

Jump to an item

component

card

Styles GroupBox: bordered surface, adaptive label, content spacing.

cardgroup-boxsurfacecontainerstyle
card, light

On iPad

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

card on iPad, light

Install

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

sweetui install card --destination Sources/YourFeature/Components

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

Usage

GroupBox {
    Text("Manage billing and renewal details from your account settings.")
} label: {
    Label("Subscription", systemImage: "creditcard.fill")
}
.groupBoxStyle(.registryCard)

Accessibility contract

  • Preserves reading order (label, content).
  • System styles; grows Dynamic Type.
  • Leading alignment follows layout direction.
  • No interaction/selection added.

Details

Kindcomponent
Version0.2.1
PlatformsiOS 26.0+
Dependenciesnone
SourceRegistry/sources/components/RegistryCardStyle.swift
Xcode previewCard