63 個程式名稱

找到 Mac 介面在 AppKit 或 SwiftUI 中的名稱

搜尋這份清單,看看兩種工具是直接對應、只有部分相近,還是要依情況判斷。

指南 · 01
01

複製程式名稱前,先看怎麼對應

兩個名稱相近的項目,開啟、關閉、焦點或輔助工具支援仍可能不同。「直接對應」表示兩者很接近;「大致對應」表示程式碼要調整;「依情況而定」表示答案要看 App 架構。

APPKIT ↔ SWIFTUI

程式名稱查詢

可依介面概念、AppKit 名稱、SwiftUI 名稱或對應程度搜尋。

直接對應61

兩個概念很接近,但仍要測試開啟、更新和關閉時的行為。

大致對應1

最接近的 API 仍要調整行為或 App 架構。

依 App 情況判斷1

正確對應要看視窗、狀態,以及哪一部分管理資料。

63 / 63 筆
AppKit 與 SwiftUI 實作名稱對照
介面概念 AppKit SwiftUI 對應程度
警示對話框 Alert
NSAlert
Apple 官方文件
.alert(…)AlertScene
Apple 官方文件
直接對應
交錯列背景 Alternating row backgrounds
NSTableView.usesAlternatingRowBackgroundColors
Apple 官方文件
.alternatingRowBackgrounds(_:)
Apple 官方文件
直接對應
應用程式選單列 App menu bar
NSApplication.mainMenu
Apple 官方文件
.commands { … }
Apple 官方文件
直接對應
按鈕 Button
NSButton
Apple 官方文件
Button
Apple 官方文件
直接對應
核取方塊 Checkbox
NSButton (switch type)
Apple 官方文件
Toggle.toggleStyle(.checkbox)
Apple 官方文件
直接對應
色彩井/顏色選擇器 Color well / color picker
NSColorWellNSColorPanel
Apple 官方文件
ColorPicker
Apple 官方文件
直接對應
指令群組 Command group
NSMenuItem (inserted group)
Apple 官方文件
CommandGroup
Apple 官方文件
直接對應
確認對話框 Confirmation dialog
NSAlert
Apple 官方文件
.confirmationDialog(…)
Apple 官方文件
直接對應
快顯選單 Context menu
NSView.menuNSMenu
Apple 官方文件
.contextMenu { … }
Apple 官方文件
直接對應
日期選擇器 Date picker
NSDatePicker
Apple 官方文件
DatePicker
Apple 官方文件
直接對應
對話框圖示 Dialog icon
NSAlert.icon
Apple 官方文件
.dialogIcon(_:)
Apple 官方文件
直接對應
展開收合控制項 Disclosure control
NSButton.BezelStyle.disclosureNSOutlineView
Apple 官方文件
DisclosureGroup
Apple 官方文件
直接對應
「不再顯示」核取方塊 “Don’t show again” checkbox
NSAlert.showsSuppressionButton
Apple 官方文件
.dialogSuppressionToggle(…)
Apple 官方文件
直接對應
儀表/層級指示器 Gauge / level indicator
NSLevelIndicator
Apple 官方文件
Gauge
Apple 官方文件
直接對應
說明按鈕/連結 Help button/link
NSHelpManagerNSButton
Apple 官方文件
HelpLink
Apple 官方文件
直接對應
階層式表格列 Hierarchical table row
NSOutlineView row
Apple 官方文件
DisclosureTableRow
Apple 官方文件
直接對應
檢閱器 Inspector
NSSplitViewItem.Behavior.inspectorNSInspectorBarNSPanel
Apple 官方文件
.inspector(…)
Apple 官方文件
依 App 情況判斷
列表 List
NSTableView
Apple 官方文件
List
Apple 官方文件
直接對應
選單 Menu
NSMenu
Apple 官方文件
Menu
Apple 官方文件
直接對應
選單列額外項目/狀態項目 Menu bar extra / status item
NSStatusItem
Apple 官方文件
MenuBarExtra
Apple 官方文件
直接對應
選單指示箭頭 Menu indicator arrow
NSPopUpButtonCell.arrowPosition
Apple 官方文件
.menuIndicator(_:)
Apple 官方文件
直接對應
選單項目鍵盤快速鍵 Menu item keyboard equivalent
NSMenuItem.keyEquivalent
Apple 官方文件
.keyboardShortcut(_:)
Apple 官方文件
直接對應
選單分隔線 Menu separator
NSMenuItem.separator()
Apple 官方文件
Divider
Apple 官方文件
直接對應
選單式狀態項目 Menu-style status item
NSStatusItemNSMenu
Apple 官方文件
MenuBarExtra.menuBarExtraStyle(.menu)
Apple 官方文件
直接對應
多視窗場景 Multi-window scene
NSWindowController (multiple instances)
Apple 官方文件
WindowGroup
Apple 官方文件
直接對應
導覽分割視圖 Navigation split view
NSSplitViewController
Apple 官方文件
NavigationSplitView
Apple 官方文件
直接對應
導覽堆疊 Navigation stack
NSPageController
Apple 官方文件
NavigationStack
Apple 官方文件
大致對應
開啟/匯入面板 Open/import panel
NSOpenPanel
Apple 官方文件
.fileImporter(…)
Apple 官方文件
直接對應
大綱/來源列表 Outline / source list
NSOutlineView
Apple 官方文件
OutlineGrouphierarchical List
Apple 官方文件
直接對應
調色盤選擇器 Palette picker
NSMatrixNSSegmentedControl
Apple 官方文件
Picker.pickerStyle(.palette)
Apple 官方文件
直接對應
貼上按鈕 Paste button
NSButtonNSPasteboard
Apple 官方文件
PasteButton
Apple 官方文件
直接對應
彈出式按鈕 Pop-up button
NSPopUpButton (pullsDown = false)
Apple 官方文件
Picker.pickerStyle(.menu)
Apple 官方文件
直接對應
彈出框 Popover
NSPopover
Apple 官方文件
.popover(…)
Apple 官方文件
直接對應
進度列/載入轉圈 Progress bar / spinner
NSProgressIndicator
Apple 官方文件
ProgressView
Apple 官方文件
直接對應
下拉式按鈕 Pull-down button
NSPopUpButton (pullsDown = true)
Apple 官方文件
Menu.menuStyle(.button)
Apple 官方文件
直接對應
單選按鈕群組 Radio group
NSButton (radio type, grouped)
Apple 官方文件
Picker.pickerStyle(.radioGroup)
Apple 官方文件
直接對應
重新命名按鈕 Rename button
NSButtonresponder-chain rename action
Apple 官方文件
RenameButton
Apple 官方文件
直接對應
可調整大小的分割視圖 Resizable split view
NSSplitView
Apple 官方文件
HSplitViewVSplitView
Apple 官方文件
直接對應
儲存/匯出面板 Save/export panel
NSSavePanel
Apple 官方文件
.fileExporter(…)
Apple 官方文件
直接對應
搜尋欄位 Search field
NSSearchField
Apple 官方文件
.searchable(…)
Apple 官方文件
直接對應
分段控制項 Segmented control
NSSegmentedControl
Apple 官方文件
Picker.pickerStyle(.segmented)
Apple 官方文件
直接對應
設定視窗 Settings window
NSWindowController (preferences window)
Apple 官方文件
Settings
Apple 官方文件
直接對應
分享按鈕/分享選擇器 Share button / share picker
NSSharingServicePicker
Apple 官方文件
ShareLink
Apple 官方文件
直接對應
工作表面板 Sheet
NSWindow.beginSheet
Apple 官方文件
.sheet(…)
Apple 官方文件
直接對應
側邊欄切換按鈕 Sidebar toggle
NSSplitViewController.toggleSidebar(_:)
Apple 官方文件
SidebarCommandssystem toolbar item
Apple 官方文件
直接對應
單一視窗 Single window
NSWindow
Apple 官方文件
Window
Apple 官方文件
直接對應
滑桿 Slider
NSSlider
Apple 官方文件
Slider
Apple 官方文件
直接對應
步進器 Stepper
NSStepper
Apple 官方文件
Stepper
Apple 官方文件
直接對應
開關 Switch
NSSwitch
Apple 官方文件
Toggle.toggleStyle(.switch)
Apple 官方文件
直接對應
分頁視圖 Tab view
NSTabViewControllerNSTabView
Apple 官方文件
TabViewTab
Apple 官方文件
直接對應
表格 Table
NSTableView
Apple 官方文件
Table
Apple 官方文件
直接對應
表格欄 Table column
NSTableColumn
Apple 官方文件
TableColumn
Apple 官方文件
直接對應
表格標題列 Table header strip
NSTableHeaderView
Apple 官方文件
.tableColumnHeaders(_:)
Apple 官方文件
直接對應
表格列 Table row
NSTableRowView
Apple 官方文件
TableRow
Apple 官方文件
直接對應
工具列 Toolbar
NSToolbar
Apple 官方文件
.toolbar { … }
Apple 官方文件
直接對應
工具列自訂面板 Toolbar customization palette
NSToolbar customization
Apple 官方文件
.toolbar(id:content:)
Apple 官方文件
直接對應
工具列項目 Toolbar item
NSToolbarItem
Apple 官方文件
ToolbarItem
Apple 官方文件
直接對應
工具列項目群組 Toolbar item group
NSToolbarItemGroup
Apple 官方文件
ToolbarItemGroup
Apple 官方文件
直接對應
工具列溢出選單 Toolbar overflow menu
NSToolbar overflow menu
Apple 官方文件
.toolbarOverflowMenu { … }
Apple 官方文件
直接對應
頂層指令選單 Top-level command menu
top-level NSMenuItemNSMenu
Apple 官方文件
CommandMenu
Apple 官方文件
直接對應
工具視窗/工具面板 Utility window / tool palette
NSPanel
Apple 官方文件
UtilityWindow
Apple 官方文件
直接對應
網頁連結 Web link
link-style NSTextFieldNSWorkspace
Apple 官方文件
Link
Apple 官方文件
直接對應
視窗式狀態項目 Window-style status item
NSStatusItemNSPopover or NSPanel
Apple 官方文件
MenuBarExtra.menuBarExtraStyle(.window)
Apple 官方文件
直接對應