Windows 95¶
Imitates: Windows 95 · Win32 shell and common controls (Windows Standard colour scheme) Windows 95 (1995) · Pack id: win95 · Selected by: pack="win95", import Windows95, import Win95, import Win32 · Default device: desktop (window chrome)
63 own elements, plus 133 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¶
CascadeMenu¶
A cascading menu beside the Start menu or a menu bar: CascadeMenu { MenuItem("Notepad", systemImage: "doc") }
role menu
Source
CascadeMenu() { Button("Open"); Button("Save"); Divider(); Button("Close") }CheckBox¶
13 px sunken white box with the black check: CheckBox("Hide files", checked: true)
role checkbox · arguments label
Source
CheckBox("Label")Clock¶
Taskbar clock
role text · arguments content · defaults content: "4:20 PM"
Source
Clock()ComboBox¶
Drop-down combo with the raised arrow button: ComboBox(items:, selection:)
role select · arguments label
Source
ComboBox("Label")ContextMenu¶
Pop-up (right-click) menu, grey with the navy highlight
role menu · arguments label
Source
ContextMenu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }ControlPanelItem¶
A Control Panel applet: ControlPanelItem("Display", systemImage: "display")
role label · arguments title
Source
ControlPanelItem("Title")CopyAnimation¶
The file-copy animation: two folders with a page flying between them
role hstack
Source
CopyAnimation() { Text("Content"); Button("Action") }DateTimePicker¶
Date field with the drop-down arrow
role datepicker · arguments label
Source
DateTimePicker("Label")DefaultButton¶
The default (Enter) button: black outline and dotted focus rectangle
role button · arguments label · defaults state: "focused", variant: "default"
Source
DefaultButton("Label")Desktop¶
The teal #008080 desktop; place DesktopIcons and Windows with .position(x:y:)
role canvas
Source
Desktop() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)DesktopIcon¶
DesktopIcon("My Computer", systemImage: "my.computer") — 32 px icon over a caption; .selected() draws the navy caption with the dotted focus rectangle
role label · arguments title
Source
DesktopIcon("Title")DialogBody¶
Root of a dialog screen: the frame's caption keeps only Close (and ? with .variant(.help)); grey dialog face
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) }
}DropDownList¶
Drop-down list (not editable)
role select · arguments label
Source
DropDownList("Label")DropDownMenu¶
A menu-bar title with its menu dropped down: MenuBar { DropDownMenu("File") { MenuItem… } MenuBarItem("Edit") }
role menu · arguments label · defaults caret: False, open: True, variant: "menubar"
Source
DropDownMenu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }FileIcon¶
FileIcon("Readme.txt", systemImage: "doc") · .variant(.small) puts the name beside a 16 px icon
role label · arguments title · variants large, small
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { FileIcon("Title").variant("large"); Text("large").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { FileIcon("Title").variant("small"); Text("small").font(.caption).foregroundStyle(.secondary) }
}Frame¶
Alias of GroupBox
role card · arguments title
Source
Frame("Title") { Text("Content"); Button("Action") }GroupBox¶
Etched frame with the caption breaking the top line
role card · arguments title
Source
GroupBox("Title") { Text("Content"); Button("Action") }IconView¶
Large Icons view: a grid of FileIcons in a sunken white well
role grid
Source
IconView() { Text("Content"); Button("Action") }ListBox¶
Single-selection list box with a sunken border
role list
Source
ListBox() { Text("First item"); Text("Second item") }ListView¶
Details view: raised column headers, columns:, rows:, selectedRows:
role table · variants details, report
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
| 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) }
VStack(alignment: .leading, spacing: 4) { ListView(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]]).variant("report"); Text("report").font(.caption).foregroundStyle(.secondary) }
}MSDOSPrompt¶
An MS-DOS Prompt window body (black, Fixedsys)
role code · defaults variant: "terminal"
Source
MSDOSPrompt()MenuBar¶
A menu bar: MenuBarItem("File")…
role toolbar
Source
MenuBar() { Button("Save"); Button("Share") }MenuBarItem¶
A menu-bar title; .selected() when its menu is open (navy highlight)
role button · arguments label · defaults variant: "plain"
Source
MenuBarItem("Label")MessageBox¶
Modal message box: MessageBox("Confirm File Delete", message: "…", severity: .question, buttons: ["Yes", "No"], primary: "Yes") — the icon is drawn from severity
role dialog · arguments title · defaults severity: "info", systemImage: "info.circle" · variants information, warning, error, question
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { MessageBox("Title") { Text("Content"); Button("Action") }.variant("information"); Text("information").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { MessageBox("Title") { Text("Content"); Button("Action") }.variant("warning"); Text("warning").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { MessageBox("Title") { Text("Content"); Button("Action") }.variant("error"); Text("error").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { MessageBox("Title") { Text("Content"); Button("Action") }.variant("question"); Text("question").font(.caption).foregroundStyle(.secondary) }
}Monitor¶
The monitor preview in Display Properties: a grey bezel around its child (the screen)
role zstack
Source
Monitor() { Text("Content"); Button("Action") }MonthCalendar¶
Month calendar (Date/Time Properties)
role calendar
Source
MonthCalendar()MultilineTextBox¶
Multi-line edit control
role textfield · arguments text · defaults kind: "multiline"
Source
MultilineTextBox("Text")Notepad¶
Notepad's edit area: fills its window, white, Fixedsys, with the scroll bars
role textfield · arguments text · defaults kind: "multiline"
Source
Notepad("Text")NotificationArea¶
Alias of Tray
role hstack
Source
NotificationArea() { Text("Content"); Button("Action") }OptionButton¶
Round sunken option button (also RadioButton)
role radio · arguments label
Source
OptionButton("Label")PaneHeader¶
Explorer's raised caption over a pane: PaneHeader("All Folders")
role text · arguments content
Source
PaneHeader("Content")PasswordBox¶
Password edit (asterisks)
role textfield · arguments placeholder · defaults kind: "password"
Source
PasswordBox("Placeholder")PopupMenu¶
A free-standing pop-up menu
role menu · arguments label
Source
PopupMenu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }ProgressBar¶
Sunken progress bar of navy blocks: ProgressBar(value: 0.6)
role progress · arguments label · variants blocks, smooth
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { ProgressBar("Label").variant("blocks"); Text("blocks").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { ProgressBar("Label").variant("smooth"); Text("smooth").font(.caption).foregroundStyle(.secondary) }
}PropertyRow¶
A label: value line in a property sheet
role labeled · arguments label, value
Source
PropertyRow("Label", "Value") { Text("Content"); Button("Action") }PropertySheet¶
Root of a property-sheet screen (tabs + OK/Cancel/Apply): caption with ? and Close
role vstack · defaults variant: "help" · variants help, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { PropertySheet() { Text("Content"); Button("Action") }.variant("help"); Text("help").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { PropertySheet() { Text("Content"); Button("Action") }.variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}PushButton¶
75 × 23 push button with the two-pixel bevel; .variant(.default) adds the black outline, .state(.focused) the dotted focus rectangle
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) }
}RadioButtonList¶
RadioButtonList("View", items: […], selection:)
role radiogroup · arguments label
Source
RadioButtonList("Label")ScrollBar¶
ScrollBar(value: 0.3, orientation: .vertical) — dithered track, arrow buttons and a square thumb
role slider · defaults orientation: "horizontal", variant: "scrollbar"
Source
ScrollBar()ScrollCorner¶
The grey size box where a horizontal and a vertical ScrollBar meet
role spacer
Source
ScrollCorner()StartButton¶
The raised bold Start button with a neutral glyph; .selected() while the menu is open
role button · arguments label · defaults label: "Start", systemImage: "start"
Source
StartButton()StartMenu¶
The Start menu with the vertical side banner: StartMenu("Workspace", subtitle: "95") { StartMenuItem… }
role card · arguments title · defaults subtitle: "95", title: "Workspace"
Source
StartMenu() { Text("Content"); Button("Action") }StartMenuItem¶
StartMenuItem("Programs", systemImage: "programs", submenu: true) — 32 px icon, ▸ for a cascading menu; .selected() is the navy highlight
role listitem · arguments title
Source
StartMenuItem("Title")StatusBar¶
Window status bar of sunken StatusBarPanels with the size grip
role hstack
Source
StatusBar() { Text("Content"); Button("Action") }StatusBarPanel¶
One sunken status-bar field
role text · arguments content
Source
StatusBarPanel("Content")TabControl¶
Property-sheet tabs: raised tabs with clipped corners, the selected one 2 px taller
role tabs · defaults placement: "top"
Source
TabControl() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }Taskbar¶
The grey taskbar along the bottom: StartButton, TaskbarButton…, Spacer, Tray
role hstack
Source
Taskbar() { Text("Content"); Button("Action") }TaskbarButton¶
A window's taskbar button (160 px, icon + caption); .selected() for the active window: pressed and dithered
role button · arguments label · defaults systemImage: "app"
Source
TaskbarButton("Label")TextBox¶
Sunken white edit control
role textfield · arguments placeholder
Source
TextBox("Placeholder")ToolBar¶
A flat toolbar (the drive combo and 16 px buttons); a grip ridge at its left
role toolbar
Source
ToolBar() { Button("Save"); Button("Share") }ToolBarButton¶
A flat 23 × 22 toolbar button, raised on .state(.hover), sunken when .selected()
role button · arguments label · defaults iconOnly: True, variant: "toolbar"
Source
ToolBarButton("Label")ToolTip¶
Pale yellow tooltip with a black border, below its target
role tooltip · arguments text · defaults placement: "bottom"
Source
ToolTip("Text") { Text("Content"); Button("Action") }TrackBar¶
Trackbar with the pointed raised thumb: TrackBar(value: 3, in: 0...10, ticks: 10)
role slider
Source
TrackBar()Tray¶
The sunken notification area at the right of the taskbar: TrayIcon… Clock
role hstack
Source
Tray() { Text("Content"); Button("Action") }TreeView¶
Folder tree with dotted lines and +/− boxes in a sunken white well
role tree
Source
TreeView() { TreeItem("Folder") { TreeItem("File") } }TreeViewItem¶
TreeViewItem("Windows", systemImage: "folder")
role treeitem · arguments label
Source
TreeViewItem("Label")UpDown¶
Spin box: UpDown("Copies", value: 2)
role stepper · arguments label
Source
UpDown("Label")Window¶
A window drawn inside a Desktop: navy caption with the app icon, Minimize/Maximize, gap, Close. Window("Notepad", systemImage: "doc") { … } · .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¶
Wizard page: the picture panel at left (systemImage:), title and body at right, actions: { < Back · Next > · Cancel } under an etched line
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") }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") }