SweetUI

Search items

Jump to an item

recipe

sheet

Side sheet: iPad inspector, iPhone sheet.

sheetinspectorside-sheetdetail-panelguidance
sheet, light

On iPad

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

sheet on iPad, light

Install

Usage

@State private var isShowingDetails = false

NavigationStack {
    List {
        LabeledContent("Merchant", value: "Mishmash Bakery")
        LabeledContent("Amount", value: "KWD 8.750")
    }
    .navigationTitle("Transaction")
    .toolbar {
        ToolbarItem(placement: .topBarTrailing) {
            Button("Details", systemImage: "sidebar.trailing") {
                isShowingDetails.toggle()
            }
            .accessibilityLabel("Toggle details")
        }
    }
    .inspector(isPresented: $isShowingDetails) {
        List {
            LabeledContent("Category", value: "Dining")
            LabeledContent("Card", value: "Visa 4321")
            LabeledContent("Status", value: "Cleared")
        }
        .inspectorColumnWidth(min: 240, ideal: 280, max: 360)
    }
}
.registryItem("sheet")

Why native is enough

.inspector: trailing column iPadOS, sheet iPhone; sized via .inspectorColumnWidth. dialog/drawer cover plain sheet. iOS 27: tab-attached inspector stopped text-field focus. Attach above stack, or use .sheet in text-field tabs.

Accessibility contract

  • Inspector toggle: labeled button; panel: VoiceOver-reachable.
  • iPhone: inspector adapts to sheet, system dismiss.

Details

Kindrecipe
Version0.1.1
PlatformsiOS 26.0+
Dependenciesnone
Sourcenone (native guidance)