Skip to content

Lisa Office System

Imitates: Apple Lisa Office System (Lisa 7/7), 1983 – 1985, 1-bit Office System 3.1 · Pack id: lisa · Selected by: pack="lisa", import Lisa, import LisaOffice · Default device: desktop (none chrome)

39 own elements, plus 125 core elements in this pack's style. Each entry shows the element rendered with sample arguments (and, for the pack's own elements, each of its variants), the role it maps onto, its positional arguments, its defaults and variants.

Pack elements

Alert

An alert box: severity .note / .caution / .stop

role dialog · arguments message · defaults severity: "note", variant: "alert"

Source
Alert("Message") { Text("Content"); Button("Action") }

Button

A Lisa button: a heavy rounded box

role button · arguments label · variants standard, default

Labelstandard
Labeldefault
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { Button("Label").variant("standard"); Text("standard").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Label").variant("default"); Text("default").font(.caption).foregroundStyle(.secondary) }
}

CautionAlert

Alert with the caution symbol

role dialog · arguments message · defaults severity: "caution", variant: "alert"

Source
CautionAlert("Message") { Text("Content"); Button("Action") }

CheckBox

A Lisa check box: a small box filled black when chosen

role checkbox · arguments label, checked

Label
Source
CheckBox("Label", true)

DefaultButton

The button that Return activates (doubled outline)

role button · arguments label · defaults variant: "default"

Label
Source
DefaultButton("Label")

Desktop

The desktop: the patterned area below the menu bar; place windows and icons with .offset(x:y:)

role zstack · defaults alignment: "topLeading"

ContentAction
Source
Desktop() { Text("Content"); Button("Action") }

DesktopIcon

An Office System icon: kind .stationery / .document / .folder / .profile / .clipboard / .trash / .preferences / .calculator / .printer

role label · arguments title, kind · defaults kind: "document" · variants folder, document, application, disk, floppy, trash, system, stationery, clipboard, calculator, preferences, profile, printer, openFolder

Titlefolder
Titledocument
Titleapplication
Titledisk
Titlefloppy
Titletrash
Titlesystem
Titlestationery
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("folder"); Text("folder").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("document"); Text("document").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("application"); Text("application").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("disk"); Text("disk").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("floppy"); Text("floppy").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("trash"); Text("trash").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("system"); Text("system").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { DesktopIcon("Title").variant("stationery"); Text("stationery").font(.caption).foregroundStyle(.secondary) }
}

Dialog

A dialog box presented over the screen (thick border)

role dialog · arguments title

Source
Dialog("Title") { Text("Content"); Button("Action") }

DialogBox

An in-place dialog box with the thick Lisa border

role card · defaults variant: "dialog"

ContentAction
Source
DialogBox() { Text("Content"); Button("Action") }

DocumentWindow

A document window with scroll bars and size control

role card · arguments title · defaults variant: "document"

Title
ContentAction
Source
DocumentWindow("Title") { Text("Content"); Button("Action") }

DrawCanvas

The drawing area (LisaDraw shows a dotted grid with grid: .dots)

role canvas

ContentAction
Source
DrawCanvas() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)

DrawPalette

The vertical tool palette of a drawing program

role grid · defaults columns: 1

ContentAction
Source
DrawPalette() { Text("Content"); Button("Action") }

EditText

A typing field

role textfield · arguments text

Text
Source
EditText("Text")

FileItem

A row of a ListBox: FileItem("Budget", kind: .stationery)

role listitem · arguments title, kind

Title
Source
FileItem("Title")

Folder

A folder icon

role label · arguments title · defaults kind: "folder"

Title
Source
Folder("Title")

FolderWindow

An open folder or disk on the Office System desktop (icon view)

role card · arguments title, subtitle · defaults variant: "folder"

TitleSubtitle
ContentAction
Source
FolderWindow("Title", "Subtitle") { Text("Content"); Button("Action") }

ListBox

A list of documents in a dialog

role list · defaults kind: "files"

First item
Second item
Source
ListBox() { Text("First item"); Text("Second item") }

A menu-bar title; Menu("File", open: true) { MenuItem(…) } pulls its menu down

role menu · arguments label · defaults caret: False

Label
Source
Menu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }

The menu bar across the top of the screen; holds Menu elements (one may be open: true)

role toolbar

Source
MenuBar() { Button("Save"); Button("Share") }

A menu command: MenuItem("Quit", shortcut: "⌘Q"); .disabled() greys it

role menuitem · arguments label, shortcut

Source
MenuItem("Label", "⌘S")

The dotted line between menu groups

role divider

Source
MenuSeparator()

NoteAlert

Alert with the note symbol

role dialog · arguments message · defaults severity: "note", variant: "alert"

Source
NoteAlert("Message") { Text("Content"); Button("Action") }

PatternPalette

Fill patterns; selection: index

role swatches · arguments colors · defaults colors: ["white", "black", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray"]

Source
PatternPalette()

ProgressBar

A plain progress bar

role progress · arguments value

Source
ProgressBar(60)

RadioButton

One choice of a group, filled when chosen

role radio · arguments label, checked

Label
Source
RadioButton("Label", true)

RadioGroup

Choices from items: […], selection: …

role radiogroup · arguments label

Label
Source
RadioGroup("Label")

Ruler

The tab ruler at the top of a word-processing window

role divider · defaults kind: "ruler"

Source
Ruler()

ScrollBar

A Lisa scroll bar with its elevator box: ScrollBar(.vertical, position: .middle)

role divider · arguments orientation · defaults orientation: "vertical" · variants active, inactive

active
inactive
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { ScrollBar().variant("active"); Text("active").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { ScrollBar().variant("inactive"); Text("inactive").font(.caption).foregroundStyle(.secondary) }
}

Separator

A 1-pixel line

role divider

Source
Separator()

Spreadsheet

Same as Worksheet

role spreadsheet

AB
1AB
212
334
Source
Spreadsheet(columns: ["A", "B"], rows: [[1, 2], [3, 4]])

StaticText

Static text

role text · arguments content

Content
Source
StaticText("Content")

StationeryPad

A stationery pad: tear off a new document

role label · arguments title · defaults kind: "stationery"

Title
Source
StationeryPad("Title")

StopAlert

Alert with the stop symbol

role dialog · arguments message · defaults severity: "stop", variant: "alert"

Source
StopAlert("Message") { Text("Content"); Button("Action") }

TextField

A typing field: an underlined area

role textfield · arguments text

Text
Source
TextField("Text")

Tool

A palette tool drawn as a 1-bit glyph: Tool(.rect); .selected() inverts it

role button · arguments kind · defaults iconOnly: True · variants select, lasso, hand, text, bucket, spray, brush, pencil, line, eraser, rect, filledRect, roundRect, filledRoundRect, oval, filledOval, arc, polygon, freehand, grid

select
lasso
hand
text
bucket
spray
brush
pencil
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { Tool().variant("select"); Text("select").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Tool().variant("lasso"); Text("lasso").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Tool().variant("hand"); Text("hand").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Tool().variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Tool().variant("bucket"); Text("bucket").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Tool().variant("spray"); Text("spray").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Tool().variant("brush"); Text("brush").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Tool().variant("pencil"); Text("pencil").font(.caption).foregroundStyle(.secondary) }
}

ToolPalette

A two-column tool palette

role grid · defaults columns: 2

ContentAction
Source
ToolPalette() { Text("Content"); Button("Action") }

ToolWindow

A window without scroll bars

role card · arguments title · defaults variant: "tool"

Title
ContentAction
Source
ToolWindow("Title") { Text("Content"); Button("Action") }

Window

A Lisa window: .document (tall white title bar, centred title, scroll bars), .tool (no scroll bars), .dialog (thick-bordered box)

role card · arguments title · defaults variant: "document" · variants document, tool, dialog, plain

Title
ContentAction
document
Title
ContentAction
tool
Title
ContentAction
dialog
Title
ContentAction
plain
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { Window("Title") { Text("Content"); Button("Action") }.variant("document"); Text("document").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Window("Title") { Text("Content"); Button("Action") }.variant("tool"); Text("tool").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Window("Title") { Text("Content"); Button("Action") }.variant("dialog"); Text("dialog").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Window("Title") { Text("Content"); Button("Action") }.variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}

Worksheet

A LisaCalc-style worksheet (rows: [[…]], selection: "B3", formula: …)

role spreadsheet

AB
1AB
212
334
Source
Worksheet(columns: ["A", "B"], rows: [[1, 2], [3, 4]])

Core vocabulary in this style

Accordion

role accordion · arguments title

Title
Source
Accordion("Title") { Text("Content"); Button("Action") }

AppBar

role appbar · arguments title

Source
AppBar("Title") { Text("Content"); Button("Action") }

AreaChart

role chart · defaults kind: "area"

Source
AreaChart(values: [3, 5, 2, 6, 4])

AsyncImage

role image · arguments url

Source
AsyncImage().frame(width: 160, height: 96)

Avatar

role avatar · arguments name

AL
Source
Avatar("Ana Lima")

Badge

role badge · arguments text

Text
Source
Badge("Text")

role alert · arguments title

Source
Banner("Title")

BarChart

role chart · defaults kind: "bar"

Source
BarChart(values: [3, 5, 2, 6, 4])

Board

Kanban board of BoardColumn children

role board

To do1
Write copy
Add card
Source
Board() { BoardColumn("To do") { KanbanCard("Write copy") } }

BoardColumn

BoardColumn("To do", count:, color:) { KanbanCard(…) }

role boardcolumn · arguments title

Title2
Write copy
Review
Add card
Source
BoardColumn("Title") { KanbanCard("Write copy"); KanbanCard("Review") }

role breadcrumb · arguments items

Source
Breadcrumb(["One", "Two", "Three"])

BubbleChart

role chart · defaults kind: "bubble"

Source
BubbleChart(values: [3, 5, 2, 6, 4])

Calendar

role calendar

November 2026
SuMoTuWeThFrSa12345678910111213141516171819202122232425262728293012345
Source
Calendar()

Callout

a numbered annotation; place with .position(x:y:)

role callout · arguments number, text

1Text
Source
Callout(1, "Text")

CandlestickChart

role chart · defaults kind: "candlestick"

Source
CandlestickChart(values: [3, 5, 2, 6, 4])

Canvas

free-form area; place children with .position(x:y:); grid: .dots|.lines

role canvas

ContentAction
Source
Canvas() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)

Capsule

role shape · defaults shape: "capsule"

Source
Capsule().frame(width: 160, height: 96)

Card

role card · arguments title

Title
ContentAction
Source
Card("Title") { Text("Content"); Button("Action") }

Chart

kind: .bar|.line|.area|.pie|.donut|.scatter|.bubble|.radar|.heatmap|.funnel|.treemap|.gauge|.candlestick|.combo|.sparkline; values:/series:/labels:/points:/matrix:

role chart

Source
Chart(values: [3, 5, 2, 6, 4])

Checkbox

role checkbox · arguments label

Label
Source
Checkbox("Label")

Chip

role chip · arguments label

Label
Source
Chip("Label")

Circle

role shape · defaults shape: "circle"

Source
Circle().frame(width: 160, height: 96)

CodeBlock

role code · arguments code · defaults lineNumbers: False

let total = items.count
Source
CodeBlock("let total = items.count")

CodeEditor

CodeEditor("…", language: "swift", lineNumbers:, highlight: [3], tabs: [..])

role code · arguments code

1let total = items.count
Source
CodeEditor("let total = items.count")

Color

role color · arguments color

Source
Color(.blue).frame(width: 160, height: 96)

ColorSwatches

colors: [.red, "#0af", …], selection:

role swatches

Source
ColorSwatches()

ComboChart

role chart · defaults kind: "combo"

Source
ComboChart(values: [3, 5, 2, 6, 4])

Comment

author:, time:, avatar:

role message · arguments text · defaults variant: "comment"

Text
Source
Comment("Text")

ControlGroup

role toolbar · defaults variant: "group"

Source
ControlGroup() { Button("Save"); Button("Share") }

DatePicker

selection: "2026-11-23"; .datePickerStyle(.graphical)

role datepicker · arguments label

Source
DatePicker("Label")

DisclosureGroup

role accordion · arguments title

Title
Source
DisclosureGroup("Title") { Text("Content"); Button("Action") }

Divider

role divider

Source
Divider()

DonutChart

role chart · defaults kind: "donut"

Source
DonutChart(values: [3, 5, 2, 6, 4])

Dropzone

role dropzone · arguments label

Label
Source
Dropzone("Label")

Ellipse

role shape · defaults shape: "ellipse"

Source
Ellipse().frame(width: 160, height: 96)

EmptyState

title, systemImage:, description: { actions }

role emptystate · arguments title

Title
Source
EmptyState("Title")

FloatingActionButton

role fab · arguments icon

Source
FloatingActionButton("star")

Form

role form

Name
Notifications
Source
Form() { TextField("Name"); Toggle("Notifications", isOn: true) }

FunnelChart

role chart · defaults kind: "funnel"

Source
FunnelChart(values: [3, 5, 2, 6, 4])

Gantt

scale: ["W1",…], tasks: [("Design", 0, 2, 0.6), …], today:

role gantt

1234567
Design
Build
Source
Gantt(tasks: [("Design", 0, 3), ("Build", 2, 5)])

Gauge

role progress · arguments value · defaults variant: "gauge"

Source
Gauge(60)

GaugeChart

role chart · defaults kind: "gauge"

Source
GaugeChart(values: [3, 5, 2, 6, 4])

Grid

Grid of GridRow children, or columns: n

role grid

ContentAction
Source
Grid() { Text("Content"); Button("Action") }

GridRow

role gridrow

ContentAction
Source
GridRow() { Text("Content"); Button("Action") }

Group

role group

ContentAction
Source
Group() { Text("Content"); Button("Action") }

GroupBox

role card · arguments title

Title
ContentAction
Source
GroupBox("Title") { Text("Content"); Button("Action") }

HStack

Horizontal stack. spacing:, alignment: .top|.center|.bottom

role hstack

ContentAction
Source
HStack() { Text("Content"); Button("Action") }

Heatmap

role chart · defaults kind: "heatmap"

Source
Heatmap(values: [3, 5, 2, 6, 4])

Histogram

role chart · defaults kind: "histogram"

Source
Histogram(values: [3, 5, 2, 6, 4])

Icon

role icon · arguments name

Source
Icon("star")

IconButton

role button · arguments icon · defaults iconOnly: True

Source
IconButton("star")

Image

Image("path.png") or Image(systemName: "star")

role image · arguments name

Source
Image().frame(width: 160, height: 96)

KanbanCard

title, description:, tags: [..], assignees: [..], due:, comments:, priority:

role kanbancard · arguments title

Title
Source
KanbanCard("Title")

Kbd

Kbd(["⌘", "K"]) or Kbd("Esc")

role kbd · arguments keys

⌘K
Source
Kbd(["⌘", "K"])

Label

Label("Inbox", systemImage: "tray")

role label · arguments title

Title
Source
Label("Title")

LabeledContent

role labeled · arguments label, value

LabelContentAction
Source
LabeledContent("Label", "Value") { Text("Content"); Button("Action") }

LazyHGrid

role grid

ContentAction
Source
LazyHGrid() { Text("Content"); Button("Action") }

LazyHStack

role hstack

ContentAction
Source
LazyHStack() { Text("Content"); Button("Action") }

LazyVGrid

columns: [GridItem(.flexible()), …] or a count

role grid

ContentAction
Source
LazyVGrid() { Text("Content"); Button("Action") }

LazyVStack

role vstack

ContentAction
Source
LazyVStack() { Text("Content"); Button("Action") }

LineChart

role chart · defaults kind: "line"

Source
LineChart(values: [3, 5, 2, 6, 4])

role link · arguments label, destination

Label
Source
Link("Label")

List

.listStyle(.insetGrouped|.plain|.sidebar|…)

role list

First item
Second item
Source
List() { Text("First item"); Text("Second item") }

ListItem

role listitem · arguments title

Title
Source
ListItem("Title")

Map

pins: [(x%, y%, "label")], route:, showsUserLocation:, height:

role map

Source
Map().frame(width: 160, height: 96)

MessageBubble

MessageBubble("Hi", from: .me|.them, author:, time:, status:, reactions: [..])

role message · arguments text

Text
Source
MessageBubble("Text")

role navitem · arguments label

Label
Source
NavItem("Label")

role listitem · arguments title · defaults chevron: True

Title
Source
NavigationLink("Title")

{ sidebar } content: { … } detail: { … }

role split

Content
Action
Source
NavigationSplitView() { Text("Content"); Button("Action") }

Content's .navigationTitle / .toolbar form the bar

role navstack

ContentAction
Source
NavigationStack() { Text("Content"); Button("Action") }

role navstack

ContentAction
Source
NavigationView() { Text("Content"); Button("Action") }

Pagination

role pagination

Source
Pagination()

Picker

Picker("Size", selection: "M") { Text("S") … }

role select · arguments label

Source
Picker("Label")

PieChart

role chart · defaults kind: "pie"

Source
PieChart(values: [3, 5, 2, 6, 4])

Placeholder

A labelled box for maps, charts, media

role placeholder · arguments label

Label
Source
Placeholder("Label").frame(width: 160, height: 96)

Pointer

Pointer(.arrow|.hand|.ibeam|.grab|.crosshair|.touch); place with .position

role pointer · arguments kind

Source
Pointer(.arrow)

ProgressView

value: 0…1 (or total:); none = indeterminate

role progress · arguments label

Label
Source
ProgressView("Label")

RadarChart

role chart · defaults kind: "radar"

Source
RadarChart(values: [3, 5, 2, 6, 4])

Rating

role rating · arguments value

Source
Rating(60)

Rectangle

role shape · defaults shape: "rectangle"

Source
Rectangle().frame(width: 160, height: 96)

RoundedRectangle

role shape · defaults shape: "rounded"

Source
RoundedRectangle().frame(width: 160, height: 96)

Row

title, subtitle:, detail:, systemImage:, chevron:

role listitem · arguments title

Title
Source
Row("Title")

ScatterChart

role chart · defaults kind: "scatter"

Source
ScatterChart(values: [3, 5, 2, 6, 4])

Schedule

days: [..], startHour:, endHour:, events: [("Standup", "Mon", 9, 9.5, .blue)], now:

role schedule

8:009:0010:0011:0012:0013:0014:0015:0016:0017:00
Mon
Tue
Wed
Thu
Fri
Source
Schedule()

ScrollView

role scroll · arguments axes

ContentAction
Source
ScrollView() { Text("Content"); Button("Action") }

SearchField

role textfield · arguments placeholder · defaults kind: "search"

Placeholder
Source
SearchField("Placeholder")

Section

Section("Header") { … } footer: { … }

role section · arguments title

Title
First itemSecond item
Source
Section("Title") { Text("First item"); Text("Second item") }

SecureField

role textfield · arguments placeholder · defaults kind: "password"

Placeholder
Source
SecureField("Placeholder")

SegmentedControl

role segmented · arguments items

OneTwoThree
Source
SegmentedControl(["One", "Two", "Three"])

SelectionRect

a drag-selection rectangle; size with .frame, place with .position

role marquee

Source
SelectionRect()

Sheet

role dialog · arguments title · defaults variant: "sheet"

Source
Sheet("Title") { Text("Content"); Button("Action") }

role sidebar · arguments title

Source
Sidebar("Title") { Text("Content"); Button("Action") }

Skeleton

lines:, avatar:, image:, shape: .circle|.rectangle|.text

role skeleton

Source
Skeleton().frame(width: 160, height: 96)

Slider

Slider(value: 0.4) or Slider(value: 30, in: 0...100)

role slider

Source
Slider()

Spacer

role spacer

Source
Spacer()

Sparkline

role chart · arguments values · defaults kind: "sparkline"

Source
Sparkline([3, 5, 2, 6, 4], values: [3, 5, 2, 6, 4])

Stat

Stat("Revenue", "$48k", change: "+12%", trend: [..], systemImage:)

role stat · arguments label, value

Label
60
Source
Stat("Label", 60)

Stepper

role stepper · arguments label

Label
Source
Stepper("Label")

Steps

role steps · arguments steps

1Cart
2Shipping
3Payment
Source
Steps(["Cart", "Shipping", "Payment"])

StickyNote

StickyNote("Call Ana", color: .yellow, rotation: -2, author:)

role stickynote · arguments text

Text
Source
StickyNote("Text")

Tab

Tab("Home", systemImage: "house") { … }

role tab · arguments label

Source
Tab("Label")

TabView

Children with .tabItem { Label } or Tab(…)

role tabs · defaults placement: "bottom"

OneTwo
First tab
Source
TabView() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

Table

columns: ["Name", …], rows: [[…], …] or TableRow children

role table

NameStatus
Ana LimaActive
Ben OkaforAway
Source
Table(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])

TableColumn

role tablecolumn · arguments title

Source
TableColumn("Title")

TableRow

role tablerow

Source
TableRow()

Tabs

role tabs · arguments items · defaults placement: "top"

OneTwo
First tab
Source
Tabs(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

Tag

role chip · arguments label

Label
Source
Tag("Label")

Terminal

lines starting with "$ " are commands

role code · arguments code · defaults variant: "terminal"

Terminal
let total = items.count
Source
Terminal("let total = items.count")

Text

Text with bold, italic, code Markdown

role text · arguments content

Content
Source
Text("Content")

TextEditor

role textfield · arguments text · defaults kind: "multiline"

Text
Source
TextEditor("Text")

Timeline

role timeline

Created
Shipped
Source
Timeline() { TimelineItem("Created"); TimelineItem("Shipped") }

TimelineItem

title, time:, description:, systemImage:, status:

role timelineitem · arguments title

Title
Source
TimelineItem("Title")

Toast

role toast · arguments message

Message
Source
Toast("Message")

Toggle

Toggle("Wi-Fi", isOn: true)

role toggle · arguments label

Label
Source
Toggle("Label")

Toolbar

role toolbar

Source
Toolbar() { Button("Save"); Button("Share") }

ToolbarItem

ToolbarItem(placement: .topBarTrailing) { … }

role toolbaritem

ContentAction
Source
ToolbarItem() { Text("Content"); Button("Action") }

ToolbarItemGroup

role toolbaritem

ContentAction
Source
ToolbarItemGroup() { Text("Content"); Button("Action") }

Tooltip

role tooltip · arguments text

ContentActionText
Source
Tooltip("Text") { Text("Content"); Button("Action") }

Tree

Tree { TreeItem("src") { TreeItem("main.swift") } }

role tree

Folder
File
Source
Tree() { TreeItem("Folder") { TreeItem("File") } }

TreeItem

label, systemImage:, folder:, expanded:, selected:, detail:

role treeitem · arguments label

Label
Source
TreeItem("Label")

Treemap

role chart · defaults kind: "treemap"

Source
Treemap(values: [3, 5, 2, 6, 4])

VStack

Vertical stack. spacing:, alignment: .leading|.center|.trailing

role vstack

ContentAction
Source
VStack() { Text("Content"); Button("Action") }

VideoPlayer

poster image, progress: 0…1, time:, duration:, playing:

role media · arguments image

Source
VideoPlayer().frame(width: 160, height: 96)

Whiteboard

role canvas · defaults grid: "dots"

ContentAction
Source
Whiteboard() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)

ZStack

Overlapping layers. alignment:

role zstack

ContentAction
Source
ZStack() { Text("Content"); Button("Action") }