SweetUI

Search items

Jump to an item

component

empty

Places ContentUnavailableView on registry surface, where rows appear.

emptyplaceholdercontent-unavailablestateshadcn
empty, light

On iPad

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

empty on iPad, light

Install

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

sweetui install empty --destination Sources/YourFeature/Components

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

Usage

ContentUnavailableView(
    "No recent activity",
    systemImage: "clock.arrow.circlepath",
    description: Text("New transactions will appear here.")
)
.registryEmptyState()

Accessibility contract

  • Keeps ContentUnavailableView semantics (title, description, symbol, actions).
  • Adds surface, padding, border; not interactive.
  • Inherits Dynamic Type, color scheme, direction.

Details

Kindcomponent
Version0.1.1
PlatformsiOS 26.0+
Dependenciesnone
SourceRegistry/sources/components/RegistryEmptyStateModifier.swift
Xcode previewEmpty State