Windows Vista / 7 (Aero)¶
Imitates: Windows Vista / Windows 7 · Aero Glass (common controls v6, Explorer, Task Dialog, UAC) Windows Vista (2007) – Windows 7 (2009) · Pack id: vista · Selected by: pack="vista", import WindowsVista, import Vista, import Aero, import Windows7 · Default device: desktop (window chrome)
78 own elements, plus 134 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¶
AllProgramsButton¶
All Programs with the arrow
role button · arguments label · defaults label: "All Programs"
Source
AllProgramsButton()BackButton¶
Round glossy blue Back button
role button · arguments label · defaults iconOnly: True, systemImage: "arrow.left"
Source
BackButton("Label")Balloon¶
Notification balloon pointing at its child: Balloon("Title", message: "…") { TrayIcon("shield") }
role tooltip · arguments text · defaults placement: "top"
Source
Balloon("Text") { Text("Content"); Button("Action") }BrandGlyph¶
Neutral glyph standing in for the system logo
role icon · arguments name · defaults name: "flag"
Source
BrandGlyph()BreadcrumbBar¶
Address bar as breadcrumbs: BreadcrumbBar(["Alex", "Documents", "Projects"])
role breadcrumb · arguments items
Source
BreadcrumbBar(["One", "Two", "Three"])CategoryLink¶
Control Panel category with a 32 px icon
role link · arguments label
Source
CategoryLink("Label")Clock¶
Taskbar clock
role text · arguments content · defaults content: "10:42 AM"
Source
Clock()ClockGadget¶
Analog clock gadget (hands at 10:10); the text is the caption under the face
role text · arguments content
Source
ClockGadget("Content")CommandBar¶
Explorer's dark blue command bar: CommandButton("Organize", dropdown: true)…
role toolbar
Source
CommandBar() { Button("Save"); Button("Share") }CommandButton¶
A command bar button (white text, glass on hover)
role button · arguments label · defaults variant: "command"
Source
CommandButton("Label")CommandLink¶
Task dialog command link: green arrow, title and subtitle:
role listitem · arguments title · defaults systemImage: "arrow.right"
Source
CommandLink("Title")ConsentBanner¶
UAC banner: coloured band with a shield: ConsentBanner("A program needs your permission", severity: .warning)
role alert · arguments title
Source
ConsentBanner("Title")ContextMenu¶
Pop-up menu with the icon gutter
role menu · arguments label
Source
ContextMenu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }DefaultButton¶
The default (Enter) button
role button · arguments label · defaults variant: "default"
Source
DefaultButton("Label")Desktop¶
The desktop with an aurora-like wallpaper; place windows, icons and gadgets with .position(x:y:)
role canvas
Source
Desktop() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)DesktopIcon¶
DesktopIcon("Computer", systemImage: "computer") — 48 px icon, white label; .selected()
role label · arguments title
Source
DesktopIcon("Title")DetailsPane¶
The gradient Details pane at the foot of Explorer: DetailsPane("Report.docx", subtitle:, systemImage:) { PropertyRow(…) }
role card · arguments title
Source
DetailsPane("Title") { Text("Content"); Button("Action") }DialogBody¶
Root of a dialog screen: the frame keeps only Close (and ? with .variant(.help))
role vstack · variants help
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { DialogBody() { Text("Content"); Button("Action") }.variant("help"); Text("help").font(.caption).foregroundStyle(.secondary) }
}DialogFooter¶
The grey footer band of a dialog (buttons, a 'Details' expander) — last child of DialogBody
role hstack
Source
DialogFooter() { Text("Content"); Button("Action") }DropDownList¶
Drop-down list drawn as a glossy button
role select · arguments label · defaults variant: "dropdown"
Source
DropDownList("Label")ExpandoButton¶
Task dialog's 'See details' expander: round arrow button and its label
role button · arguments label · defaults systemImage: "chevron.down", variant: "expando"
Source
ExpandoButton("Label")FavoriteLink¶
FavoriteLink("Documents", systemImage: "folder")
role navitem · arguments label
Source
FavoriteLink("Label")FileIcon¶
FileIcon("Report.docx", systemImage: "doc") · .variant(.tiles)
role label · arguments title · variants icons, tiles
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { FileIcon("Title").variant("icons"); Text("icons").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { FileIcon("Title").variant("tiles"); Text("tiles").font(.caption).foregroundStyle(.secondary) }
}ForwardButton¶
Round glossy blue Forward button
role button · arguments label · defaults iconOnly: True, systemImage: "arrow.right"
Source
ForwardButton("Label")Frame¶
Group box (also GroupBox)
role card · arguments title
Source
Frame("Title") { Text("Content"); Button("Action") }GadgetSidebar¶
The translucent Sidebar strip holding gadgets
role vstack
Source
GadgetSidebar() { Text("Content"); Button("Action") }IconView¶
Icons view: a grid of FileIcon
role grid
Source
IconView() { Text("Content"); Button("Action") }ListBox¶
List box
role list
Source
ListBox() { Text("First item"); Text("Second item") }ListView¶
Details view: columns:, TableRow children or rows:, sortColumn:, selectedRows:
role table · variants details
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { ListView(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]]).variant("details"); Text("details").font(.caption).foregroundStyle(.secondary) }
}LockButton¶
Amber lock button
role button · arguments label · defaults iconOnly: True, systemImage: "lock"
Source
LockButton("Label")MainInstruction¶
The big blue (#003399) main instruction of a task dialog or Aero wizard
role text · arguments content
Source
MainInstruction("Content")MenuBarItem¶
A menu bar title; .selected() when open
role button · arguments label · defaults variant: "plain"
Source
MenuBarItem("Label")MonthCalendar¶
Month calendar
role calendar
Source
MonthCalendar()MultilineTextBox¶
Multi-line edit
role textfield · arguments text · defaults kind: "multiline"
Source
MultilineTextBox("Text")NavigationBar¶
The glass strip with Back/Forward, the breadcrumb and the search box
role hstack
Source
NavigationBar() { Text("Content"); Button("Action") }NavigationPane¶
Explorer's left pane: NavigationPane("Favorite Links") { FavoriteLink(…) }
role sidebar · arguments title
Source
NavigationPane("Title") { Text("Content"); Button("Action") }NotificationArea¶
Tray at the right of the taskbar: TrayIcon… Clock
role hstack
Source
NotificationArea() { Text("Content"); Button("Action") }OptionButton¶
Radio button (also RadioButton)
role radio · arguments label
Source
OptionButton("Label")PasswordBox¶
Password edit
role textfield · arguments placeholder · defaults kind: "password"
Source
PasswordBox("Placeholder")PowerButton¶
Red power (sleep) button
role button · arguments label · defaults iconOnly: True, systemImage: "power"
Source
PowerButton("Label")PowerMenuButton¶
The arrow opening the shut-down menu
role button · arguments label · defaults iconOnly: True, systemImage: "chevron.right"
Source
PowerMenuButton("Label")ProgressBar¶
Green glossy progress bar; .variant(.paused) yellow, .variant(.error) red
role progress · arguments label · variants normal, paused, error
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { ProgressBar("Label").variant("normal"); Text("normal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { ProgressBar("Label").variant("paused"); Text("paused").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { ProgressBar("Label").variant("error"); Text("error").font(.caption).foregroundStyle(.secondary) }
}PropertyRow¶
A label: value property line
role labeled · arguments label, value
Source
PropertyRow("Label", "Value") { Text("Content"); Button("Action") }PushButton¶
Glossy push button; .state(.hover) light-blue, .variant(.default) blue border
role button · arguments label · variants default, standard
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { PushButton("Label").variant("default"); Text("default").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { PushButton("Label").variant("standard"); Text("standard").font(.caption).foregroundStyle(.secondary) }
}QuickLaunch¶
Quick Launch toolbar
role hstack
Source
QuickLaunch() { Text("Content"); Button("Action") }RadioButtonList¶
RadioButtonList("View", items: […], selection:)
role radiogroup · arguments label
Source
RadioButtonList("Label")SearchBox¶
Explorer search box (italic prompt, magnifier at the right)
role textfield · arguments placeholder · defaults kind: "search", placeholder: "Search"
Source
SearchBox()StartButton¶
Alias of StartOrb
role button · arguments label · defaults systemImage: "flag"
Source
StartButton("Label")StartMenu¶
Glass Start menu: StartMenu("Alex", avatar:, avatarImage:) { StartMenuPrograms{…} StartMenuPlaces{…} }
role card · arguments title
Source
StartMenu("Title") { Text("Content"); Button("Action") }StartMenuItem¶
StartMenuItem("Internet", subtitle: "Web browser", systemImage: "globe")
role listitem · arguments title
Source
StartMenuItem("Title")StartMenuPlaces¶
The glass right pane (user folders, Control Panel, power buttons)
role vstack
Source
StartMenuPlaces() { Text("Content"); Button("Action") }StartMenuPrograms¶
The white left pane (programs, All Programs, Start Search)
role vstack
Source
StartMenuPrograms() { Text("Content"); Button("Action") }StartOrb¶
The round glossy Start orb with a neutral glyph; .selected() while the menu is open
role button · arguments label · defaults systemImage: "flag"
Source
StartOrb("Label")StartSearch¶
The search box at the foot of the Start menu
role textfield · arguments placeholder · defaults kind: "search", placeholder: "Start Search"
Source
StartSearch()StatusBarPanel¶
One status bar field
role text · arguments content
Source
StatusBarPanel("Content")TabControl¶
Property-sheet tabs
role tabs · defaults placement: "top"
Source
TabControl() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }TaskDialog¶
Task dialog: white content (MainInstruction, text, CommandLinks) over a grey footer of buttons: TaskDialog("Caption", systemImage:) { … } actions: { … }
role dialog · arguments title
Source
TaskDialog("Title") { Text("Content"); Button("Action") }Taskbar¶
The black glass taskbar: StartOrb, QuickLaunch, TaskbarButton…, NotificationArea
role hstack
Source
Taskbar() { Text("Content"); Button("Action") }TaskbarButton¶
A window's glass taskbar button; .selected() for the active window
role button · arguments label
Source
TaskbarButton("Label")TextBox¶
Edit control
role textfield · arguments placeholder
Source
TextBox("Placeholder")ToolTip¶
Gradient tooltip
role tooltip · arguments text
Source
ToolTip("Text") { Text("Content"); Button("Action") }TreeView¶
Tree with the Vista hollow/filled triangles
role tree
Source
TreeView() { TreeItem("Folder") { TreeItem("File") } }TreeViewItem¶
TreeViewItem("Documents", systemImage: "folder")
role treeitem · arguments label
Source
TreeViewItem("Label")WeatherGadget¶
Weather gadget: WeatherGadget("Harbor City", "21°", change: "H 24° L 15°", systemImage: "sun")
role stat · arguments label, value
Source
WeatherGadget("Label", 60)Window¶
An Aero glass window drawn inside a Desktop: Window("Pictures", systemImage: "photo") { … } · .variant(.inactive | .dialog | .tool)
role card · arguments title · variants active, inactive, dialog, tool
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { Window("Title") { Text("Content"); Button("Action") }.variant("active"); Text("active").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { Window("Title") { Text("Content"); Button("Action") }.variant("inactive"); Text("inactive").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("tool"); Text("tool").font(.caption).foregroundStyle(.secondary) }
}Wizard¶
Aero wizard page: main instruction header, white body, grey footer actions: { Next · Cancel }
role card · arguments title
Source
Wizard("Title") { Text("Content"); Button("Action") }Core vocabulary in this style¶
Accordion¶
role accordion · arguments title
Source
Accordion("Title") { Text("Content"); Button("Action") }Alert¶
role dialog · arguments title · defaults variant: "alert"
Source
Alert("Title") { Text("Content"); Button("Action") }Board¶
Kanban board of BoardColumn children
role board
Source
Board() { BoardColumn("To do") { KanbanCard("Write copy") } }BoardColumn¶
BoardColumn("To do", count:, color:) { KanbanCard(…) }
role boardcolumn · arguments title
Source
BoardColumn("Title") { KanbanCard("Write copy"); KanbanCard("Review") }Button¶
Button("Save", systemImage:) · .buttonStyle(…)
role button · arguments label
Source
Button("Label")Calendar¶
role calendar
Source
Calendar()Callout¶
a numbered annotation; place with .position(x:y:)
role callout · arguments number, text
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
Source
Canvas() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)Card¶
role card · arguments title
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])CodeBlock¶
role code · arguments code · defaults lineNumbers: False
Source
CodeBlock("let total = items.count")CodeEditor¶
CodeEditor("…", language: "swift", lineNumbers:, highlight: [3], tabs: [..])
role code · arguments code
Source
CodeEditor("let total = items.count")Comment¶
author:, time:, avatar:
role message · arguments text · defaults variant: "comment"
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")Dialog¶
role dialog · arguments title
Source
Dialog("Title") { Text("Content"); Button("Action") }DisclosureGroup¶
role accordion · arguments title
Source
DisclosureGroup("Title") { Text("Content"); Button("Action") }EmptyState¶
title, systemImage:, description: { actions }
role emptystate · arguments title
Source
EmptyState("Title")Form¶
role form
Source
Form() { TextField("Name"); Toggle("Notifications", isOn: true) }Gantt¶
scale: ["W1",…], tasks: [("Design", 0, 2, 0.6), …], today:
role gantt
Source
Gantt(tasks: [("Design", 0, 3), ("Build", 2, 5)])Grid¶
Grid of GridRow children, or columns: n
role grid
Source
Grid() { Text("Content"); Button("Action") }GroupBox¶
role card · arguments title
Source
GroupBox("Title") { Text("Content"); Button("Action") }HStack¶
Horizontal stack. spacing:, alignment: .top|.center|.bottom
role hstack
Source
HStack() { Text("Content"); Button("Action") }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
Source
KanbanCard("Title")LabeledContent¶
role labeled · arguments label, value
Source
LabeledContent("Label", "Value") { Text("Content"); Button("Action") }LazyVGrid¶
columns: [GridItem(.flexible()), …] or a count
role grid
Source
LazyVGrid() { Text("Content"); Button("Action") }List¶
.listStyle(.insetGrouped|.plain|.sidebar|…)
role list
Source
List() { Text("First item"); Text("Second item") }Map¶
pins: [(x%, y%, "label")], route:, showsUserLocation:, height:
role map
Source
Map().frame(width: 160, height: 96)Menu¶
role menu · arguments label
Source
Menu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }MessageBubble¶
MessageBubble("Hi", from: .me|.them, author:, time:, status:, reactions: [..])
role message · arguments text
Source
MessageBubble("Text")NavigationLink¶
role listitem · arguments title · defaults chevron: True
Source
NavigationLink("Title")NavigationSplitView¶
{ sidebar } content: { … } detail: { … }
role split
Source
NavigationSplitView() { Text("Content"); Button("Action") }NavigationStack¶
Content's .navigationTitle / .toolbar form the bar
role navstack
Source
NavigationStack() { Text("Content"); Button("Action") }Picker¶
Picker("Size", selection: "M") { Text("S") … }
role select · arguments label
Source
Picker("Label")Placeholder¶
A labelled box for maps, charts, media
role placeholder · arguments 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
Source
ProgressView("Label")RoundedRectangle¶
role shape · defaults shape: "rounded"
Source
RoundedRectangle().frame(width: 160, height: 96)Row¶
title, subtitle:, detail:, systemImage:, chevron:
role listitem · arguments title
Source
Row("Title")Schedule¶
days: [..], startHour:, endHour:, events: [("Standup", "Mon", 9, 9.5, .blue)], now:
role schedule
Source
Schedule()ScrollView¶
role scroll · arguments axes
Source
ScrollView() { Text("Content"); Button("Action") }SearchField¶
role textfield · arguments placeholder · defaults kind: "search"
Source
SearchField("Placeholder")Section¶
Section("Header") { … } footer: { … }
role section · arguments title
Source
Section("Title") { Text("First item"); Text("Second item") }SecureField¶
role textfield · arguments placeholder · defaults kind: "password"
Source
SecureField("Placeholder")SegmentedControl¶
role segmented · arguments items
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") }Sidebar¶
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)Sparkline¶
role chart · arguments values · defaults kind: "sparkline"
Source
Sparkline([3, 5, 2, 6, 4], values: [3, 5, 2, 6, 4])Spreadsheet¶
rows: [[…]], selection: "B2:C4", active:, formula:, sheets: [..], highlight: ["B3": .yellow]
role spreadsheet
| A | B | |
|---|---|---|
| 1 | A | B |
| 2 | 1 | 2 |
| 3 | 3 | 4 |
Source
Spreadsheet(columns: ["A", "B"], rows: [[1, 2], [3, 4]])Stat¶
Stat("Revenue", "$48k", change: "+12%", trend: [..], systemImage:)
role stat · arguments label, value
Source
Stat("Label", 60)Steps¶
role steps · arguments steps
Source
Steps(["Cart", "Shipping", "Payment"])StickyNote¶
StickyNote("Call Ana", color: .yellow, rotation: -2, author:)
role stickynote · arguments text
Source
StickyNote("Text")TabView¶
Children with .tabItem { Label } or Tab(…)
role tabs · defaults placement: "bottom"
Source
TabView() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }Table¶
columns: ["Name", …], rows: [[…], …] or TableRow children
role table
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
Source
Table(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])Tabs¶
role tabs · arguments items · defaults placement: "top"
Source
Tabs(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }Terminal¶
lines starting with "$ " are commands
role code · arguments code · defaults variant: "terminal"
Source
Terminal("let total = items.count")Text¶
Text with bold, italic, code Markdown
role text · arguments content
Source
Text("Content")TextEditor¶
role textfield · arguments text · defaults kind: "multiline"
Source
TextEditor("Text")TextField¶
TextField("Placeholder", text: "value")
role textfield · arguments placeholder
Source
TextField("Placeholder")Timeline¶
role timeline
Source
Timeline() { TimelineItem("Created"); TimelineItem("Shipped") }TimelineItem¶
title, time:, description:, systemImage:, status:
role timelineitem · arguments title
Source
TimelineItem("Title")ToolbarItem¶
ToolbarItem(placement: .topBarTrailing) { … }
role toolbaritem
Source
ToolbarItem() { Text("Content"); Button("Action") }ToolbarItemGroup¶
role toolbaritem
Source
ToolbarItemGroup() { Text("Content"); Button("Action") }Tooltip¶
role tooltip · arguments text
Source
Tooltip("Text") { Text("Content"); Button("Action") }Tree¶
Tree { TreeItem("src") { TreeItem("main.swift") } }
role tree
Source
Tree() { TreeItem("Folder") { TreeItem("File") } }TreeItem¶
label, systemImage:, folder:, expanded:, selected:, detail:
role treeitem · arguments label
Source
TreeItem("Label")VStack¶
Vertical stack. spacing:, alignment: .leading|.center|.trailing
role vstack
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"
Source
Whiteboard() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)ZStack¶
Overlapping layers. alignment:
role zstack
Source
ZStack() { Text("Content"); Button("Action") }