macos-settings-ui
БесплатноБез исполняемых скриптовНе проверенBuild a proper macOS settings/preferences window with liquid glass support for macOS 26 (Tahoe). Use this skill whenever the user asks to create a settings…
от fayazara★ 698 звёзд на GitHubОб этом скилле
macOS Settings UI with Liquid Glass
This skill produces a native macOS settings window that follows Apple's macOS 26 design guidelines. The result is a sidebar + detail NavigationSplitView with liquid glass window chrome, back/forward toolbar navigation, grouped Form sections with transparent backgrounds, and proper scroll edge effects.
Architecture Overview
The settings UI is composed of 3 layers:
Window Controller (
SettingsWindowController.swift) — AnNSWindowControllerthat creates theNSWindowprogrammatically with.fullSizeContentView. This is what gives the window rounded liquid glass corners. You cannot get this effect from a SwiftUIWindowscene.Root View (
SettingsView.swift) — ANavigationSplitViewwith a sidebar list and detail pane. Includes back/forward navigation history in the toolbar, which also forces the creation of anNSToolbar(required for the liquid glass title bar treatment).Detail Panes (one file per tab) — Each pane uses
Form { Section(...) { ... } }.formStyle(.grouped).scrollContentBackground(.hidden).
Why NSWindowController Instead of SwiftUI Window Scene
SwiftUI's declarative Window scene does not expose the NSWindow style mask. The .fullSizeContentView flag must be set at window creation time for macOS 26 to render the liquid glass chrome (rounded corners, translucent sidebar, blurred title bar). Trying to inject it later via NSViewRepresentable is unreliable because SwiftUI resets the window's configuration.
The NSWindowController approach also lets you control the toolbar style, frame autosave, minimum size, and delegate lifecycle directly.
Critical Modifiers
Every detail pane MUST have these three modifiers on its Form:
.formStyle(.grouped)
.scrollContentBackground(.hidden)
.contentMargins(.top, 8, for: .scrollContent)
.formStyle(.grouped)— gives the native inset rounded-rect section appearance.scrollContentBackground(.hidden)— makes the form background transparent so the liquid glass window chrome shows through. Without this, you get an opaque white/dark background that breaks the glass effect..contentMargins(.top, 8)— adds breathing room between the toolbar and the first section
The sidebar List MUST have:
.listStyle(.sidebar)
.scrollEdgeEffectStyleSoftIfAvailable() // macOS 26 progressive blur at scroll edges
.navigationTitle("Settings")
The NavigationSplitView MUST have:
NavigationSplitView(columnVisibility: .constant(.all)) // sidebar always visible
// ...
.navigationTitle("Settings")
.navigationSplitViewStyle(.balanced)
Reference Implementation
Read the reference files for complete, working code:
references/SettingsWindowController.swift— The window controller (copy as-is, adapt the activation policy calls to your app)references/SettingsView.swift— The root view with sidebar, detail routing, and navigation historyreferences/ExampleDetailPane.swift— A template detail pane showing common control patterns (Toggle, Picker, Slider, LabeledContent)
Step-by-Step: Adding Settings to a New App
1. Create the Tab Enum
Define your settings categories. Each case needs a title and SF Symbol icon:
enum SettingsTab: String, CaseIterable, Identifiable {
case general
case appearance
case about
var id: Self { self }
var title: String {
switch self {
case .general: "General"
case .appearance: "Appearance"
case .about: "About"
}
}
var systemImage: String {
switch self {
case .general: "gearshape"
case .appearance: "paintbrush"
case .about: "info.circle"
}
}
}
2. Create the Window Controller
Copy references/SettingsWindowController.swift into your project. Adapt:
- The initial
contentRectsize (default700x540is good for most apps) - The
minSize(default620x460) - The activation policy calls (
AppActivationPolicy.enter()/leave()) — if your app isn't a menu-bar-only app, remove these
3. Create the Root Settings View
Copy references/SettingsView.swift. Adapt:
- The
SettingsTabenum cases to match your categories - The
SettingsDetailViewswitch to return your panes
4. Create Detail Panes
For each tab, create a pane file. Use this template:
import SwiftUI
struct GeneralSettingsPane: View {
@AppStorage("someKey") private var someValue = false
var body: some View {
Form {
Section("Section Name") {
Toggle("Toggle label", isOn: $someValue)
}
}
.formStyle(.grouped)
.scrollContentBackground(.hidden)
.contentMargins(.top, 8, for: .scrollContent)
}
}
5. Open Settings from Your App
From a menu bar, button, or anywhere:
SettingsWindowController.show(tab: .general)
Do NOT use a SwiftUI Window scene. Do NOT use openWindow(id:). The window control
Установить macos-settings-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл macos-settings-ui?
Build a proper macOS settings/preferences window with liquid glass support for macOS 26 (Tahoe). Use this skill whenever the user asks to create a settings window, preferences UI, settings view, or preferences pane for a macOS app. Also trigger when the user mentions "liquid glass settings", "NavigationSplitView settings", "grouped Form settings", "macOS settings layout", or wants to add/fix/rebuild a settings screen in any native macOS SwiftUI app. This includes phrases like "add settings to my app", "create a preferences window", "my settings look wrong", "fix my settings UI", or even just "I need a settings view". If the user is building a macOS app and mentions settings or preferences in any context, use this skill.
Как установить скилл macos-settings-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл macos-settings-ui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic