[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FGYHTM873TXJ97VP4D4E2Z":3,"skill-same:01M6FGYHTM873TXJ97VP4D4E2Z":88},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FGYHTM873TXJ97VP4D4E2Z","swift-settingskit",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002FSKILL.md",[],[18,19],"swift","swift settingskit","2026-11-10 10:12:30",false,"---\nname: swift-settingskit\ndescription: SettingsKit for SwiftUI settings interfaces (iOS, macOS, watchOS, tvOS, visionOS). Use for settings\u002Fpreferences screens, searchable settings, nested navigation, @Observable\u002F@Bindable state, or encountering settings update errors, navigation state issues.\n\n  Keywords: SettingsKit, SwiftUI settings, settings interface, preferences UI, searchable settings, settings navigation, SettingsContainer, SettingsGroup, SettingsItem, CustomSettingsGroup, settings tags, settings search, Observable settings, Bindable settings, iOS 17, macOS 14, Swift 6, settings style, sidebar settings, declarative settings, settings hierarchy\nlicense: MIT\n---\n\n# Swift SettingsKit\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-23\n**Dependencies**: None (standalone Swift package)\n**Latest Version**: SettingsKit 1.0.0+\n\n## Supported Toolchains\n\n**Minimum Requirements**:\n- **Swift**: 6.0+ (required for @Observable macro and SettingsKit compilation)\n- **Xcode**: 16.0+ (provides Swift 6.0 toolchain)\n- **Platforms**: iOS 17.0+ \u002F macOS 14.0+ \u002F watchOS 10.0+ \u002F tvOS 17.0+ \u002F visionOS 1.0+\n\n**Note**: While @Observable was introduced in Swift 5.9, SettingsKit's Package.swift specifies Swift 6.0+ as the minimum toolchain version. All examples in this skill target Swift 6.0+.\n\n---\n\n## Quick Start (5 Minutes)\n\n### 1. Add SettingsKit Package\n\nAdd the Swift package to your project via Xcode:\n\n```swift\n\u002F\u002F File → Add Package Dependencies\n\u002F\u002F Enter: https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git\n\u002F\u002F Version: 1.0.0 or later\n```\n\n**Or via Package.swift:**\n```swift\ndependencies: [\n    .package(url: \"https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git\", from: \"1.0.0\")\n]\n```\n\n**Why this matters:**\n- SettingsKit requires iOS 17+ \u002F macOS 14+ for modern SwiftUI features\n- Swift 6.0+ is required for @Observable macro support\n- Framework is platform-adaptive across all Apple platforms\n\n### 2. Create Observable Settings Model\n\n```swift\nimport SwiftUI\nimport SettingsKit\n\n@Observable\nclass AppSettings {\n    var notificationsEnabled = true\n    var darkMode = false\n    var username = \"Guest\"\n    var fontSize: Double = 14.0\n}\n```\n\n**CRITICAL:**\n- Use `@Observable` macro (not `@Published` or `ObservableObject`)\n- SettingsKit is designed for Swift's modern observation system\n- Settings model must be in SwiftUI environment for binding\n\n### 3. Implement SettingsContainer Protocol\n\n```swift\nstruct MySettings: SettingsContainer {\n    @Environment(AppSettings.self) var appSettings\n\n    var settingsBody: some SettingsContent {\n        @Bindable var settings = appSettings\n\n        SettingsGroup(\"General\", systemImage: \"gear\") {\n            SettingsItem(\"Notifications\") {\n                Toggle(\"Enable\", isOn: $settings.notificationsEnabled)\n            }\n\n            SettingsItem(\"Dark Mode\") {\n                Toggle(\"Enable\", isOn: $settings.darkMode)\n            }\n        }\n\n        SettingsGroup(\"Profile\", systemImage: \"person\") {\n            SettingsItem(\"Username\") {\n                TextField(\"Username\", text: $settings.username)\n            }\n\n            SettingsItem(\"Font Size\") {\n                Slider(value: $settings.fontSize, in: 10...24)\n                Text(\"\\(Int(settings.fontSize))pt\")\n            }\n        }\n    }\n}\n```\n\n**CRITICAL:**\n- Must use `@Bindable` wrapper to create bindings from @Observable model\n- `settingsBody` returns `SettingsContent` (not `View`)\n- Groups appear as navigation links in sidebar style (tappable rows)\n\n### 4. Add to Your App\n\n```swift\nimport SwiftUI\nimport SettingsKit\n\n@main\nstruct MyApp: App {\n    @State private var settings = AppSettings()\n\n    var body: some Scene {\n        WindowGroup {\n            MySettings()\n                .environment(settings)\n        }\n    }\n}\n```\n\n**Result:** Complete settings interface with:\n- Automatic navigation (sidebar on iPad\u002FMac, single column on iPhone)\n- Built-in search functionality\n- Platform-adaptive presentation\n- Reactive state updates\n\n---\n\n## The 4-Step Setup Process\n\n### Step 1: Install Package Dependency\n\nAdd SettingsKit via Swift Package Manager in Xcode:\n1. File → Add Package Dependencies\n2. Enter repository URL: `https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git`\n3. Select \"Up to Next Major Version\" from \"1.0.0\"\n4. Add to your app target\n\n**Key Points:**\n- Requires Xcode 16.0+ for Swift 6.0 support\n- Package includes all platforms (iOS, macOS, watchOS, tvOS, visionOS)\n- No additional configuration needed\n\n### Step 2: Define Settings Data Model\n\nCreate an `@Observable` class to hold your settings state:\n\n```swift\nimport SwiftUI\n\n@Observable\nclass AppSettings {\n    \u002F\u002F General settings\n    var notificationsEnabled = true\n    var soundEnabled = true\n    var hapticFeedback = true\n\n    \u002F\u002F Appearance settings\n    var darkMode = false\n    var accentColor: Color = .blue\n    var fontSize: Double = 16.0\n\n    \u002F\u002F User profile\n    var username = \"\"\n    var email = \"\"\n    var profileImageURL: URL?\n}\n```\n\n**Key Points:**\n- Use `@Observable` macro (Swift 6.0+) for modern observation\n- Initialize all properties with default values\n- Keep settings model separate from view logic\n- Can include computed properties for derived state\n\n### Step 3: Build Settings Hierarchy\n\nImplement `SettingsContainer` protocol to define your settings UI:\n\n```swift\nimport SettingsKit\n\nstruct MySettings: SettingsContainer {\n    @Environment(AppSettings.self) var appSettings\n\n    var settingsBody: some SettingsContent {\n        @Bindable var settings = appSettings\n\n        \u002F\u002F Navigation group (tappable row)\n        SettingsGroup(\"General\", systemImage: \"gear\") {\n            SettingsItem(\"Notifications\") {\n                Toggle(\"Enable\", isOn: $settings.notificationsEnabled)\n            }\n            SettingsItem(\"Sound Effects\") {\n                Toggle(\"Enable\", isOn: $settings.soundEnabled)\n            }\n        }\n        .settingsTags([\"notifications\", \"sounds\", \"alerts\"])\n\n        \u002F\u002F Inline group (section header)\n        SettingsGroup(\"Quick Settings\", .inline) {\n            SettingsItem(\"Dark Mode\") {\n                Toggle(\"Enable\", isOn: $settings.darkMode)\n            }\n        }\n\n        \u002F\u002F Nested navigation\n        SettingsGroup(\"Profile\", systemImage: \"person\") {\n            SettingsGroup(\"Account\", systemImage: \"person.circle\") {\n                SettingsItem(\"Username\") {\n                    TextField(\"Username\", text: $settings.username)\n                }\n                SettingsItem(\"Email\") {\n                    TextField(\"Email\", text: $settings.email)\n                }\n            }\n        }\n    }\n}\n```\n\n**Key Points:**\n- `SettingsGroup` creates navigation links (default) or section headers (`.inline`)\n- `SettingsItem` wraps individual controls\n- Add `.settingsTags([...])` for enhanced search discoverability\n- Groups can be nested infinitely for deep hierarchies\n\n### Step 4: Configure Presentation Style\n\nChoose how settings are displayed:\n\n```swift\n\u002F\u002F Sidebar style (default) - Split view on iPad\u002FMac\nMySettings(settings: settings)\n    .settingsStyle(.sidebar)\n\n\u002F\u002F Single column style - Clean list on all platforms\nMySettings(settings: settings)\n    .settingsStyle(.single)\n\n\u002F\u002F Custom style - Full control over appearance\nMySettings(settings: settings)\n    .settingsStyle(MyCustomStyle())\n```\n\n**Key Points:**\n- `.sidebar`: NavigationSplitView with selection-based navigation (default)\n- `.single`: Single NavigationStack with push navigation\n- Custom styles conform to `SettingsStyle` protocol\n- Platform automatically adapts to device context\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Use @Observable for settings models** - Required for SettingsKit's reactive system\n✅ **Wrap environment settings with @Bindable** - Enables two-way binding in settingsBody\n✅ **Add searchable tags to important groups** - Improves discoverability via `.settingsTags([...])`\n✅ **Keep settings models in SwiftUI environment** - Use `.environment(settings)` on parent view\n✅ **Use SettingsItem for all interactive controls** - Ensures proper search indexing\n\n### Never Do\n\n❌ **Never use ObservableObject with @Published** - SettingsKit requires modern @Observable\n❌ **Never create bindings without @Bindable wrapper** - Will cause compilation errors\n❌ **Never put heavy computation in settingsBody** - Computed on every render, keep lightweight\n❌ **Never forget to inject settings into environment** - Causes runtime crashes\n❌ **Never use CustomSettingsGroup for simple controls** - Bypasses search indexing unnecessarily\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **5** documented issues:\n\n### Issue #1: \"Cannot convert value of type 'Binding\u003CT>' to expected argument type 'Binding\u003CU>'\"\n**Error**: Compilation error when trying to bind to @Observable properties without @Bindable wrapper\n**Source**: Swift concurrency migration guide, Observable macro documentation\n**Why It Happens**: @Observable models require @Bindable wrapper to create bindings, unlike @Published properties\n**Prevention**: Always use `@Bindable var settings = appSettings` in settingsBody before creating bindings\n\n### Issue #2: Settings UI Not Updating When Model Changes\n**Error**: Toggle switches, sliders, and text fields don't reflect model changes\n**Source**: SettingsKit GitHub issues, SwiftUI observation system documentation\n**Why It Happens**: Settings model not properly injected into SwiftUI environment, breaking observation\n**Prevention**: Use `.environment(settings)` on parent view and `@Environment(AppSettings.self)` in SettingsContainer\n\n### Issue #3: Navigation State Conflicts in Sidebar Style\n**Error**: Selecting settings items doesn't navigate, or navigation stack becomes corrupted\n**Source**: SettingsKit architecture documentation, NavigationSplitView best practices\n**Why It Happens**: Using NavigationLink directly instead of SettingsGroup in sidebar style causes state conflicts\n**Prevention**: Always use SettingsGroup for navigation (never raw NavigationLink), let SettingsKit manage navigation state\n\n### Issue #4: Custom Groups Not Appearing in Search Results\n**Error**: CustomSettingsGroup content is invisible to search functionality\n**Source**: SettingsKit README - \"Custom groups are searchable by title\u002Ficon\u002Ftags but content renders without element indexing\"\n**Why It Happens**: CustomSettingsGroup bypasses standard indexing for full UI control, only metadata is searchable\n**Prevention**: Use regular SettingsGroup\u002FSettingsItem for searchable content, reserve CustomSettingsGroup for complex custom UI\n\n### Issue #5: Settings Crashes on macOS with \"Nil coalescing\" Runtime Error\n**Error**: App crashes when opening settings on macOS with destination-based navigation issues\n**Source**: SettingsKit macOS-specific implementation notes\n**Why It Happens**: macOS uses destination-based NavigationLink (not selection-based) to prevent control update issues, but requires proper navigation state setup\n**Prevention**: Let SettingsKit handle navigation stack creation, don't wrap SettingsContainer in custom NavigationStack on macOS\n\n---\n\n## Configuration Files Reference\n\n### Package.swift (Full Example)\n\n```swift\n\u002F\u002F swift-tools-version: 6.0\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyApp\",\n    platforms: [\n        .iOS(.v17),\n        .macOS(.v14),\n        .watchOS(.v10),\n        .tvOS(.v17),\n        .visionOS(.v1)\n    ],\n    products: [\n        .executable(name: \"MyApp\", targets: [\"MyApp\"])\n    ],\n    dependencies: [\n        .package(url: \"https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git\", from: \"1.0.0\")\n    ],\n    targets: [\n        .executableTarget(\n            name: \"MyApp\",\n            dependencies: [\n                .product(name: \"SettingsKit\", package: \"SettingsKit\")\n            ]\n        )\n    ]\n)\n```\n\n**Why these settings:**\n- Platform versions match SettingsKit minimum requirements (iOS 17+, etc.)\n- Swift tools version 6.0+ required for @Observable macro\n- SettingsKit is added as package dependency with semantic versioning\n\n---\n\n## Common Patterns\n\n### Pattern 1: Modular Settings Groups\n\nExtract complex settings sections into separate SettingsContent types for better organization:\n\n```swift\nstruct NotificationSettings: SettingsContent {\n    @Bindable var settings: AppSettings\n\n    var body: some SettingsContent {\n        SettingsGroup(\"Notifications\", systemImage: \"bell\") {\n            SettingsItem(\"Enable Notifications\") {\n                Toggle(\"Enable\", isOn: $settings.notificationsEnabled)\n            }\n\n            if settings.notificationsEnabled {\n                SettingsItem(\"Sound\") {\n                    Toggle(\"Enable\", isOn: $settings.soundEnabled)\n                }\n                SettingsItem(\"Badge\") {\n                    Toggle(\"Show badge\", isOn: $settings.badgeEnabled)\n                }\n            }\n        }\n        .settingsTags([\"notifications\", \"alerts\", \"sounds\", \"badges\"])\n    }\n}\n\n\u002F\u002F Use in main settings:\nvar settingsBody: some SettingsContent {\n    NotificationSettings(settings: settings)\n    AppearanceSettings(settings: settings)\n    PrivacySettings(settings: settings)\n}\n```\n\n**When to use**: Complex settings hierarchies with 5+ groups, conditional content, or team collaboration on different sections\n\n### Pattern 2: Searchable Custom Developer Tools\n\nUse CustomSettingsGroup for advanced UIs while maintaining searchability:\n\n```swift\nCustomSettingsGroup(\"Developer Tools\", systemImage: \"hammer\") {\n    VStack(spacing: 20) {\n        GroupBox(\"Debug Information\") {\n            VStack(alignment: .leading, spacing: 8) {\n                Text(\"App Version: 1.0.0\")\n                Text(\"Build: 42\")\n                Text(\"Environment: Production\")\n            }\n            .frame(maxWidth: .infinity, alignment: .leading)\n        }\n\n        Button(\"Clear Cache\") {\n            clearCache()\n        }\n        .buttonStyle(.borderedProminent)\n\n        Button(\"Export Logs\", systemImage: \"square.and.arrow.up\") {\n            exportLogs()\n        }\n    }\n    .padding()\n}\n.settingsTags([\"debug\", \"testing\", \"logs\", \"advanced\"])\n```\n\n**When to use**: Complex custom UI that doesn't fit standard SettingsItem pattern, but still needs search discoverability via tags\n\n### Pattern 3: Conditional Settings Visibility\n\nShow\u002Fhide settings based on feature flags or user permissions:\n\n```swift\nSettingsGroup(\"Advanced\", systemImage: \"gearshape.2\") {\n    SettingsItem(\"Enable Advanced Features\") {\n        Toggle(\"Enable\", isOn: $settings.showAdvanced)\n    }\n\n    if settings.showAdvanced {\n        SettingsItem(\"Beta Features\") {\n            Toggle(\"Enable\", isOn: $settings.betaFeaturesEnabled)\n        }\n\n        SettingsItem(\"Developer Mode\") {\n            Toggle(\"Enable\", isOn: $settings.developerMode)\n        }\n    }\n\n    if settings.developerMode {\n        SettingsGroup(\"Developer Options\", systemImage: \"wrench.and.screwdriver\") {\n            SettingsItem(\"Verbose Logging\") {\n                Toggle(\"Enable\", isOn: $settings.verboseLogging)\n            }\n        }\n    }\n}\n```\n\n**When to use**: Feature flags, user permission levels, progressive disclosure of complexity\n\n### Pattern 4: All Control Types\n\nSettingsItem supports all standard SwiftUI controls:\n\n```swift\nSettingsGroup(\"All Controls\", systemImage: \"slider.horizontal.3\") {\n    \u002F\u002F Toggle (Boolean)\n    SettingsItem(\"Enable Feature\") {\n        Toggle(\"Enable\", isOn: $settings.featureEnabled)\n    }\n\n    \u002F\u002F Slider (Continuous value)\n    SettingsItem(\"Volume\") {\n        VStack(alignment: .leading, spacing: 8) {\n            Slider(value: $settings.volume, in: 0...100)\n            Text(\"\\(Int(settings.volume))%\")\n                .font(.caption)\n                .foregroundStyle(.secondary)\n        }\n    }\n\n    \u002F\u002F TextField (Text input)\n    SettingsItem(\"Username\") {\n        TextField(\"Enter username\", text: $settings.username)\n            .textFieldStyle(.roundedBorder)\n    }\n\n    \u002F\u002F Picker (Selection)\n    SettingsItem(\"Theme\") {\n        Picker(\"\", selection: $settings.theme) {\n            Text(\"Light\").tag(Theme.light)\n            Text(\"Dark\").tag(Theme.dark)\n            Text(\"Auto\").tag(Theme.auto)\n        }\n        .pickerStyle(.segmented)\n    }\n\n    \u002F\u002F Stepper (Increment\u002FDecrement)\n    SettingsItem(\"Font Size\") {\n        Stepper(\"\\(Int(settings.fontSize)) pt\", value: $settings.fontSize, in: 10...24)\n    }\n\n    \u002F\u002F Button (Action)\n    SettingsItem(\"Reset Settings\") {\n        Button(\"Reset\") {\n            resetSettings()\n        }\n        .buttonStyle(.borderedProminent)\n        .tint(.red)\n    }\n\n    \u002F\u002F ColorPicker (Color selection)\n    SettingsItem(\"Accent Color\") {\n        ColorPicker(\"Choose color\", selection: $settings.accentColor)\n    }\n\n    \u002F\u002F DatePicker (Date\u002FTime selection)\n    SettingsItem(\"Reminder Time\") {\n        DatePicker(\"\", selection: $settings.reminderTime, displayedComponents: .hourAndMinute)\n    }\n}\n```\n\n**When to use**: Reference for available controls when building settings\n\n---\n\n## When to Load References\n\nLoad additional reference files for detailed documentation on specific topics:\n\n- **Load `references\u002Fapi-reference.md`** when implementing advanced SettingsContainer customization, custom SettingsContent types, or need detailed API documentation for all protocols and modifiers\n\n- **Load `references\u002Fstyling-guide.md`** when customizing settings appearance, implementing custom SettingsStyle, or need platform-specific styling guidance\n\n- **Load `references\u002Fsearch-implementation.md`** when implementing custom search logic, debugging search behavior, or need to understand SettingsKit's search architecture\n\n- **Load `references\u002Fadvanced-patterns.md`** when building complex nested hierarchies, implementing dynamic settings, working with persistence, or need production-ready architectural patterns\n\n- **Load `references\u002Fperformance-edge-cases.md`** when building large settings hierarchies (100+ groups or 1000+ items), experiencing performance issues, or need stress testing guidance and optimization strategies\n\n---\n\n## Using Bundled Resources\n\n### Scripts (scripts\u002F)\n\n**No scripts included** - SettingsKit is a pure Swift package with no build scripts needed.\n\n### References (references\u002F)\n\nDetailed documentation files for advanced topics:\n\n- `references\u002Fapi-reference.md` - Complete API documentation for all SettingsKit protocols, types, and modifiers\n- `references\u002Fstyling-guide.md` - Comprehensive guide to customizing settings appearance and platform-specific behaviors\n- `references\u002Fsearch-implementation.md` - Deep dive into search architecture, custom search implementation, and search scoring\n- `references\u002Fadvanced-patterns.md` - Production patterns for complex hierarchies, state management, persistence, and testing\n- `references\u002Fperformance-edge-cases.md` - Performance optimization, stress testing, and handling large hierarchies\n\n**When to load**: See \"When to Load References\" section above for specific scenarios\n\n### Assets (assets\u002F)\n\nSwift template files for quick setup:\n\n- `assets\u002Fbasic-settings-template.swift` - Complete minimal settings implementation\n- `assets\u002Fcustom-style-template.swift` - Custom SettingsStyle implementation template (5 examples)\n- `assets\u002Fmodular-settings-template.swift` - Multi-file settings organization pattern\n- `assets\u002Fdemo-app-template.swift` - Full demo app matching official SettingsKit demo (25+ properties, all control types, stress tests)\n\n---\n\n## Dependencies\n\n**Required**:\n- Swift 6.0+ (for @Observable macro support)\n- iOS 17.0+ \u002F macOS 14.0+ \u002F watchOS 10.0+ \u002F tvOS 17.0+ \u002F visionOS 1.0+\n- SwiftUI framework (built-in)\n\n**Optional**:\n- None - SettingsKit is a standalone framework with no external dependencies\n\n---\n\n## Official Documentation\n\n- **SettingsKit GitHub**: https:\u002F\u002Fgithub.com\u002FAeastr\u002FSettingsKit\n- **Swift Observation**: https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fobservation\n- **SwiftUI Navigation**: https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fswiftui\u002Fnavigation\n- **Context7 Library ID**: N\u002FA (not indexed yet)\n\n---\n\n## Package Versions (Verified 2025-11-23)\n\n```json\n{\n  \"dependencies\": {\n    \"SettingsKit\": \"1.0.0\"\n  }\n}\n```\n\n**Platform Requirements:**\n- iOS 17.0+\n- macOS 14.0+\n- watchOS 10.0+\n- tvOS 17.0+\n- visionOS 1.0+\n- Swift 6.0+\n- Xcode 16.0+\n\n---\n\n## Production Example\n\nThis skill is based on the official SettingsKit repository and examples:\n- **Repository**: https:\u002F\u002Fgithub.com\u002FAeastr\u002FSettingsKit\n- **License**: MIT\n- **Validation**: ✅ Tested on iOS 17+, macOS 14+, watchOS 10+, tvOS 17+, visionOS 1+\n- **Architecture**: Hybrid metadata\u002Fview\u002Frendering system for searchable + reactive settings\n\n---\n\n## Troubleshooting\n\n### Problem: \"Cannot find 'SettingsContainer' in scope\"\n**Solution**: Import SettingsKit at top of file: `import SettingsKit`. Verify package is added to target dependencies in Xcode project settings.\n\n### Problem: Settings toggles don't update when model changes\n**Solution**: Ensure settings model is in SwiftUI environment (`.environment(settings)`) and use `@Bindable` wrapper in settingsBody before creating bindings.\n\n### Problem: Navigation doesn't work in sidebar style\n**Solution**: Verify using SettingsGroup (not raw NavigationLink), and not wrapping SettingsContainer in custom NavigationStack\u002FNavigationSplitView.\n\n### Problem: Search can't find my custom settings\n**Solution**: Add `.settingsTags([...])` to groups with relevant keywords. CustomSettingsGroup content is not indexed—use SettingsItem for searchable controls.\n\n---\n\n## Complete Setup Checklist\n\nUse this checklist to verify your setup:\n\n- [ ] SettingsKit package added (1.0.0+) via Swift Package Manager\n- [ ] Minimum platform versions met (iOS 17+ \u002F macOS 14+ \u002F Swift 6.0+)\n- [ ] Settings model uses @Observable (not ObservableObject)\n- [ ] SettingsContainer protocol implemented with settingsBody\n- [ ] @Bindable wrapper used before creating bindings\n- [ ] Settings model injected into environment (.environment(settings))\n- [ ] Settings groups use .settingsTags([...]) for search\n- [ ] App compiles without errors\n- [ ] Settings UI displays correctly on target platforms\n- [ ] Search functionality works (try searching for tagged keywords)\n- [ ] Settings state persists and updates reactively\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fapi-reference.md` for detailed API documentation\n2. Review `references\u002Fadvanced-patterns.md` for complex scenarios\n3. Verify all steps in the 4-step setup process\n4. Check official repository: https:\u002F\u002Fgithub.com\u002FAeastr\u002FSettingsKit\n5. Ensure Swift 6.0+ and iOS 17+ \u002F macOS 14+ requirements met\n\n---\n","# Swift SettingsKit\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-23\n**Dependencies**: None (standalone Swift package)\n**Latest Version**: SettingsKit 1.0.0+\n\n## Supported Toolchains\n\n**Minimum Requirements**:\n- **Swift**: 6.0+ (required for @Observable macro and SettingsKit compilation)\n- **Xcode**: 16.0+ (provides Swift 6.0 toolchain)\n- **Platforms**: iOS 17.0+ \u002F macOS 14.0+ \u002F watchOS 10.0+ \u002F tvOS 17.0+ \u002F visionOS 1.0+\n\n**Note**: While @Observable was introduced in Swift 5.9, SettingsKit's Package.swift specifies Swift 6.0+ as the minimum toolchain version. All examples in this skill target Swift 6.0+.\n\n---\n\n## Quick Start (5 Minutes)\n\n### 1. Add SettingsKit Package\n\nAdd the Swift package to your project via Xcode:\n\n```swift\n\u002F\u002F File → Add Package Dependencies\n\u002F\u002F Enter: https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git\n\u002F\u002F Version: 1.0.0 or later\n```\n\n**Or via Package.swift:**\n```swift\ndependencies: [\n    .package(url: \"https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git\", from: \"1.0.0\")\n]\n```\n\n**Why this matters:**\n- SettingsKit requires iOS 17+ \u002F macOS 14+ for modern SwiftUI features\n- Swift 6.0+ is required for @Observable macro support\n- Framework is platform-adaptive across all Apple platforms\n\n### 2. Create Observable Settings Model\n\n```swift\nimport SwiftUI\nimport SettingsKit\n\n@Observable\nclass AppSettings {\n    var notificationsEnabled = true\n    var darkMode = false\n    var username = \"Guest\"\n    var fontSize: Double = 14.0\n}\n```\n\n**CRITICAL:**\n- Use `@Observable` macro (not `@Published` or `ObservableObject`)\n- SettingsKit is designed for Swift's modern observation system\n- Settings model must be in SwiftUI environment for binding\n\n### 3. Implement SettingsContainer Protocol\n\n```swift\nstruct MySettings: SettingsContainer {\n    @Environment(AppSettings.self) var appSettings\n\n    var settingsBody: some SettingsContent {\n        @Bindable var settings = appSettings\n\n        SettingsGroup(\"General\", systemImage: \"gear\") {\n            SettingsItem(\"Notifications\") {\n                Toggle(\"Enable\", isOn: $settings.notificationsEnabled)\n            }\n\n            SettingsItem(\"Dark Mode\") {\n                Toggle(\"Enable\", isOn: $settings.darkMode)\n            }\n        }\n\n        SettingsGroup(\"Profile\", systemImage: \"person\") {\n            SettingsItem(\"Username\") {\n                TextField(\"Username\", text: $settings.username)\n            }\n\n            SettingsItem(\"Font Size\") {\n                Slider(value: $settings.fontSize, in: 10...24)\n                Text(\"\\(Int(settings.fontSize))pt\")\n            }\n        }\n    }\n}\n```\n\n**CRITICAL:**\n- Must use `@Bindable` wrapper to create bindings from @Observable model\n- `settingsBody` returns `SettingsContent` (not `View`)\n- Groups appear as navigation links in sidebar style (tappable rows)\n\n### 4. Add to Your App\n\n```swift\nimport SwiftUI\nimport SettingsKit\n\n@main\nstruct MyApp: App {\n    @State private var settings = AppSettings()\n\n    var body: some Scene {\n        WindowGroup {\n            MySettings()\n                .environment(settings)\n        }\n    }\n}\n```\n\n**Result:** Complete settings interface with:\n- Automatic navigation (sidebar on iPad\u002FMac, single column on iPhone)\n- Built-in search functionality\n- Platform-adaptive presentation\n- Reactive state updates\n\n---\n\n## The 4-Step Setup Process\n\n### Step 1: Install Package Dependency\n\nAdd SettingsKit via Swift Package Manager in Xcode:\n1. File → Add Package Dependencies\n2. Enter repository URL: `https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git`\n3. Select \"Up to Next Major Version\" from \"1.0.0\"\n4. Add to your app target\n\n**Key Points:**\n- Requires Xcode 16.0+ for Swift 6.0 support\n- Package includes all platforms (iOS, macOS, watchOS, tvOS, visionOS)\n- No additional configuration needed\n\n### Step 2: Define Settings Data Model\n\nCreate an `@Observable` class to hold your settings state:\n\n```swift\nimport SwiftUI\n\n@Observable\nclass AppSettings {\n    \u002F\u002F General settings\n    var notificationsEnabled = true\n    var soundEnabled = true\n    var hapticFeedback = true\n\n    \u002F\u002F Appearance settings\n    var darkMode = false\n    var accentColor: Color = .blue\n    var fontSize: Double = 16.0\n\n    \u002F\u002F User profile\n    var username = \"\"\n    var email = \"\"\n    var profileImageURL: URL?\n}\n```\n\n**Key Points:**\n- Use `@Observable` macro (Swift 6.0+) for modern observation\n- Initialize all properties with default values\n- Keep settings model separate from view logic\n- Can include computed properties for derived state\n\n### Step 3: Build Settings Hierarchy\n\nImplement `SettingsContainer` protocol to define your settings UI:\n\n```swift\nimport SettingsKit\n\nstruct MySettings: SettingsContainer {\n    @Environment(AppSettings.self) var appSettings\n\n    var settingsBody: some SettingsContent {\n        @Bindable var settings = appSettings\n\n        \u002F\u002F Navigation group (tappable row)\n        SettingsGroup(\"General\", systemImage: \"gear\") {\n            SettingsItem(\"Notifications\") {\n                Toggle(\"Enable\", isOn: $settings.notificationsEnabled)\n            }\n            SettingsItem(\"Sound Effects\") {\n                Toggle(\"Enable\", isOn: $settings.soundEnabled)\n            }\n        }\n        .settingsTags([\"notifications\", \"sounds\", \"alerts\"])\n\n        \u002F\u002F Inline group (section header)\n        SettingsGroup(\"Quick Settings\", .inline) {\n            SettingsItem(\"Dark Mode\") {\n                Toggle(\"Enable\", isOn: $settings.darkMode)\n            }\n        }\n\n        \u002F\u002F Nested navigation\n        SettingsGroup(\"Profile\", systemImage: \"person\") {\n            SettingsGroup(\"Account\", systemImage: \"person.circle\") {\n                SettingsItem(\"Username\") {\n                    TextField(\"Username\", text: $settings.username)\n                }\n                SettingsItem(\"Email\") {\n                    TextField(\"Email\", text: $settings.email)\n                }\n            }\n        }\n    }\n}\n```\n\n**Key Points:**\n- `SettingsGroup` creates navigation links (default) or section headers (`.inline`)\n- `SettingsItem` wraps individual controls\n- Add `.settingsTags([...])` for enhanced search discoverability\n- Groups can be nested infinitely for deep hierarchies\n\n### Step 4: Configure Presentation Style\n\nChoose how settings are displayed:\n\n```swift\n\u002F\u002F Sidebar style (default) - Split view on iPad\u002FMac\nMySettings(settings: settings)\n    .settingsStyle(.sidebar)\n\n\u002F\u002F Single column style - Clean list on all platforms\nMySettings(settings: settings)\n    .settingsStyle(.single)\n\n\u002F\u002F Custom style - Full control over appearance\nMySettings(settings: settings)\n    .settingsStyle(MyCustomStyle())\n```\n\n**Key Points:**\n- `.sidebar`: NavigationSplitView with selection-based navigation (default)\n- `.single`: Single NavigationStack with push navigation\n- Custom styles conform to `SettingsStyle` protocol\n- Platform automatically adapts to device context\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Use @Observable for settings models** - Required for SettingsKit's reactive system\n✅ **Wrap environment settings with @Bindable** - Enables two-way binding in settingsBody\n✅ **Add searchable tags to important groups** - Improves discoverability via `.settingsTags([...])`\n✅ **Keep settings models in SwiftUI environment** - Use `.environment(settings)` on parent view\n✅ **Use SettingsItem for all interactive controls** - Ensures proper search indexing\n\n### Never Do\n\n❌ **Never use ObservableObject with @Published** - SettingsKit requires modern @Observable\n❌ **Never create bindings without @Bindable wrapper** - Will cause compilation errors\n❌ **Never put heavy computation in settingsBody** - Computed on every render, keep lightweight\n❌ **Never forget to inject settings into environment** - Causes runtime crashes\n❌ **Never use CustomSettingsGroup for simple controls** - Bypasses search indexing unnecessarily\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **5** documented issues:\n\n### Issue #1: \"Cannot convert value of type 'Binding\u003CT>' to expected argument type 'Binding\u003CU>'\"\n**Error**: Compilation error when trying to bind to @Observable properties without @Bindable wrapper\n**Source**: Swift concurrency migration guide, Observable macro documentation\n**Why It Happens**: @Observable models require @Bindable wrapper to create bindings, unlike @Published properties\n**Prevention**: Always use `@Bindable var settings = appSettings` in settingsBody before creating bindings\n\n### Issue #2: Settings UI Not Updating When Model Changes\n**Error**: Toggle switches, sliders, and text fields don't reflect model changes\n**Source**: SettingsKit GitHub issues, SwiftUI observation system documentation\n**Why It Happens**: Settings model not properly injected into SwiftUI environment, breaking observation\n**Prevention**: Use `.environment(settings)` on parent view and `@Environment(AppSettings.self)` in SettingsContainer\n\n### Issue #3: Navigation State Conflicts in Sidebar Style\n**Error**: Selecting settings items doesn't navigate, or navigation stack becomes corrupted\n**Source**: SettingsKit architecture documentation, NavigationSplitView best practices\n**Why It Happens**: Using NavigationLink directly instead of SettingsGroup in sidebar style causes state conflicts\n**Prevention**: Always use SettingsGroup for navigation (never raw NavigationLink), let SettingsKit manage navigation state\n\n### Issue #4: Custom Groups Not Appearing in Search Results\n**Error**: CustomSettingsGroup content is invisible to search functionality\n**Source**: SettingsKit README - \"Custom groups are searchable by title\u002Ficon\u002Ftags but content renders without element indexing\"\n**Why It Happens**: CustomSettingsGroup bypasses standard indexing for full UI control, only metadata is searchable\n**Prevention**: Use regular SettingsGroup\u002FSettingsItem for searchable content, reserve CustomSettingsGroup for complex custom UI\n\n### Issue #5: Settings Crashes on macOS with \"Nil coalescing\" Runtime Error\n**Error**: App crashes when opening settings on macOS with destination-based navigation issues\n**Source**: SettingsKit macOS-specific implementation notes\n**Why It Happens**: macOS uses destination-based NavigationLink (not selection-based) to prevent control update issues, but requires proper navigation state setup\n**Prevention**: Let SettingsKit handle navigation stack creation, don't wrap SettingsContainer in custom NavigationStack on macOS\n\n---\n\n## Configuration Files Reference\n\n### Package.swift (Full Example)\n\n```swift\n\u002F\u002F swift-tools-version: 6.0\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyApp\",\n    platforms: [\n        .iOS(.v17),\n        .macOS(.v14),\n        .watchOS(.v10),\n        .tvOS(.v17),\n        .visionOS(.v1)\n    ],\n    products: [\n        .executable(name: \"MyApp\", targets: [\"MyApp\"])\n    ],\n    dependencies: [\n        .package(url: \"https:\u002F\u002Fgithub.com\u002Faeastr\u002FSettingsKit.git\", from: \"1.0.0\")\n    ],\n    targets: [\n        .executableTarget(\n            name: \"MyApp\",\n            dependencies: [\n                .product(name: \"SettingsKit\", package: \"SettingsKit\")\n            ]\n        )\n    ]\n)\n```\n\n**Why these settings:**\n- Platform versions match SettingsKit minimum requirements (iOS 17+, etc.)\n- Swift tools version 6.0+ required for @Observable macro\n- SettingsKit is added as package dependency with semantic versioning\n\n---\n\n## Common Patterns\n\n### Pattern 1: Modular Settings Groups\n\nExtract complex settings sections into separate SettingsContent types for better organization:\n\n```swift\nstruct NotificationSettings: SettingsContent {\n    @Bindable var settings: AppSettings\n\n    var body: some SettingsContent {\n        SettingsGroup(\"Notifications\", systemImage: \"bell\") {\n            SettingsItem(\"Enable Notifications\") {\n                Toggle(\"Enable\", isOn: $settings.notificationsEnabled)\n            }\n\n            if settings.notificationsEnabled {\n                SettingsItem(\"Sound\") {\n                    Toggle(\"Enable\", isOn: $settings.soundEnabled)\n                }\n                SettingsItem(\"Badge\") {\n                    Toggle(\"Show badge\", isOn: $settings.badgeEnabled)\n                }\n            }\n        }\n        .settingsTags([\"notifications\", \"alerts\", \"sounds\", \"badges\"])\n    }\n}\n\n\u002F\u002F Use in main settings:\nvar settingsBody: some SettingsContent {\n    NotificationSettings(settings: settings)\n    AppearanceSettings(settings: settings)\n    PrivacySettings(settings: settings)\n}\n```\n\n**When to use**: Complex settings hierarchies with 5+ groups, conditional content, or team collaboration on different sections\n\n### Pattern 2: Searchable Custom Developer Tools\n\nUse CustomSettingsGroup for advanced UIs while maintaining searchability:\n\n```swift\nCustomSettingsGroup(\"Developer Tools\", systemImage: \"hammer\") {\n    VStack(spacing: 20) {\n        GroupBox(\"Debug Information\") {\n            VStack(alignment: .leading, spacing: 8) {\n                Text(\"App Version: 1.0.0\")\n                Text(\"Build: 42\")\n                Text(\"Environment: Production\")\n            }\n            .frame(maxWidth: .infinity, alignment: .leading)\n        }\n\n        Button(\"Clear Cache\") {\n            clearCache()\n        }\n        .buttonStyle(.borderedProminent)\n\n        Button(\"Export Logs\", systemImage: \"square.and.arrow.up\") {\n            exportLogs()\n        }\n    }\n    .padding()\n}\n.settingsTags([\"debug\", \"testing\", \"logs\", \"advanced\"])\n```\n\n**When to use**: Complex custom UI that doesn't fit standard SettingsItem pattern, but still needs search discoverability via tags\n\n### Pattern 3: Conditional Settings Visibility\n\nShow\u002Fhide settings based on feature flags or user permissions:\n\n```swift\nSettingsGroup(\"Advanced\", systemImage: \"gearshape.2\") {\n    SettingsItem(\"Enable Advanced Features\") {\n        Toggle(\"Enable\", isOn: $settings.showAdvanced)\n    }\n\n    if settings.showAdvanced {\n        SettingsItem(\"Beta Features\") {\n            Toggle(\"Enable\", isOn: $settings.betaFeaturesEnabled)\n        }\n\n        SettingsItem(\"Developer Mode\") {\n            Toggle(\"Enable\", isOn: $settings.developerMode)\n        }\n    }\n\n    if settings.developerMode {\n        SettingsGroup(\"Developer Options\", systemImage: \"wrench.and.screwdriver\") {\n            SettingsItem(\"Verbose Logging\") {\n                Toggle(\"Enable\", isOn: $settings.verboseLogging)\n            }\n        }\n    }\n}\n```\n\n**When to use**: Feature flags, user permission levels, progressive disclosure of complexity\n\n### Pattern 4: All Control Types\n\nSettingsItem supports all standard SwiftUI controls:\n\n```swift\nSettingsGroup(\"All Controls\", systemImage: \"slider.horizontal.3\") {\n    \u002F\u002F Toggle (Boolean)\n    SettingsItem(\"Enable Feature\") {\n        Toggle(\"Enable\", isOn: $settings.featureEnabled)\n    }\n\n    \u002F\u002F Slider (Continuous value)\n    SettingsItem(\"Volume\") {\n        VStack(alignment: .leading, spacing: 8) {\n            Slider(value: $settings.volume, in: 0...100)\n            Text(\"\\(Int(settings.volume))%\")\n                .font(.caption)\n                .foregroundStyle(.secondary)\n        }\n    }\n\n    \u002F\u002F TextField (Text input)\n    SettingsItem(\"Username\") {\n        TextField(\"Enter username\", text: $settings.username)\n            .textFieldStyle(.roundedBorder)\n    }\n\n    \u002F\u002F Picker (Selection)\n    SettingsItem(\"Theme\") {\n        Picker(\"\", selection: $settings.theme) {\n            Text(\"Light\").tag(Theme.light)\n            Text(\"Dark\").tag(Theme.dark)\n            Text(\"Auto\").tag(Theme.auto)\n        }\n        .pickerStyle(.segmented)\n    }\n\n    \u002F\u002F Stepper (Increment\u002FDecrement)\n    SettingsItem(\"Font Size\") {\n        Stepper(\"\\(Int(settings.fontSize)) pt\", value: $settings.fontSize, in: 10...24)\n    }\n\n    \u002F\u002F Button (Action)\n    SettingsItem(\"Reset Settings\") {\n        Button(\"Reset\") {\n            resetSettings()\n        }\n        .buttonStyle(.borderedProminent)\n        .tint(.red)\n    }\n\n    \u002F\u002F ColorPicker (Color selection)\n    SettingsItem(\"Accent Color\") {\n        ColorPicker(\"Choose color\", selection: $settings.accentColor)\n    }\n\n    \u002F\u002F DatePicker (Date\u002FTime selection)\n    SettingsItem(\"Reminder Time\") {\n        DatePicker(\"\", selection: $settings.reminderTime, displayedComponents: .hourAndMinute)\n    }\n}\n```\n\n**When to use**: Reference for available controls when building settings\n\n---\n\n## When to Load References\n\nLoad additional reference files for detailed documentation on specific topics:\n\n- **Load `references\u002Fapi-reference.md`** when implementing advanced SettingsContainer customization, custom SettingsContent types, or need detailed API documentation for all protocols and modifiers\n\n- **Load `references\u002Fstyling-guide.md`** when customizing settings appearance, implementing custom SettingsStyle, or need platform-specific styling guidance\n\n- **Load `references\u002Fsearch-implementation.md`** when implementing custom search logic, debugging search behavior, or need to understand SettingsKit's search architecture\n\n- **Load `references\u002Fadvanced-patterns.md`** when building complex nested hierarchies, implementing dynamic settings, working with persistence, or need production-ready architectural patterns\n\n- **Load `references\u002Fperformance-edge-cases.md`** when building large settings hierarchies (100+ groups or 1000+ items), experiencing performance issues, or need stress testing guidance and optimization strategies\n\n---\n\n## Using Bundled Resources\n\n### Scripts (scripts\u002F)\n\n**No scripts included** - SettingsKit is a pure Swift package with no build scripts needed.\n\n### References (references\u002F)\n\nDetailed documentation files for advanced topics:\n\n- `references\u002Fapi-reference.md` - Complete API documentation for all SettingsKit protocols, types, and modifiers\n- `references\u002Fstyling-guide.md` - Comprehensive guide to customizing settings appearance and platform-specific behaviors\n- `references\u002Fsearch-implementation.md` - Deep dive into search architecture, custom search implementation, and search scoring\n- `references\u002Fadvanced-patterns.md` - Production patterns for complex hierarchies, state management, persistence, and testing\n- `references\u002Fperformance-edge-cases.md` - Performance optimization, stress testing, and handling large hierarchies\n\n**When to load**: See \"When to Load References\" section above for specific scenarios\n\n### Assets (assets\u002F)\n\nSwift template files for quick setup:\n\n- `assets\u002Fbasic-settings-template.swift` - Complete minimal settings implementation\n- `assets\u002Fcustom-style-template.swift` - Custom SettingsStyle implementation template (5 examples)\n- `assets\u002Fmodular-settings-template.swift` - Multi-file settings organization pattern\n- `assets\u002Fdemo-app-template.swift` - Full demo app matching official SettingsKit demo (25+ properties, all control types, stress tests)\n\n---\n\n## Dependencies\n\n**Required**:\n- Swift 6.0+ (for @Observable macro support)\n- iOS 17.0+ \u002F macOS 14.0+ \u002F watchOS 10.0+ \u002F tvOS 17.0+ \u002F visionOS 1.0+\n- SwiftUI framework (built-in)\n\n**Optional**:\n- None - SettingsKit is a standalone framework with no external dependencies\n\n---\n\n## Official Documentation\n\n- **SettingsKit GitHub**: https:\u002F\u002Fgithub.com\u002FAeastr\u002FSettingsKit\n- **Swift Observation**: https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fobservation\n- **SwiftUI Navigation**: https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fswiftui\u002Fnavigation\n- **Context7 Library ID**: N\u002FA (not indexed yet)\n\n---\n\n## Package Versions (Verified 2025-11-23)\n\n```json\n{\n  \"dependencies\": {\n    \"SettingsKit\": \"1.0.0\"\n  }\n}\n```\n\n**Platform Requirements:**\n- iOS 17.0+\n- macOS 14.0+\n- watchOS 10.0+\n- tvOS 17.0+\n- visionOS 1.0+\n- Swift 6.0+\n- Xcode 16.0+\n\n---\n\n## Production Example\n\nThis skill is based on the official SettingsKit repository and examples:\n- **Repository**: https:\u002F\u002Fgithub.com\u002FAeastr\u002FSettingsKit\n- **License**: MIT\n- **Validation**: ✅ Tested on iOS 17+, macOS 14+, watchOS 10+, tvOS 17+, visionOS 1+\n- **Architecture**: Hybrid metadata\u002Fview\u002Frendering system for searchable + reactive settings\n\n---\n\n## Troubleshooting\n\n### Problem: \"Cannot find 'SettingsContainer' in scope\"\n**Solution**: Import SettingsKit at top of file: `import SettingsKit`. Verify package is added to target dependencies in Xcode project settings.\n\n### Problem: Settings toggles don't update when model changes\n**Solution**: Ensure settings model is in SwiftUI environment (`.environment(settings)`) and use `@Bindable` wrapper in settingsBody before creating bindings.\n\n### Problem: Navigation doesn't work in sidebar style\n**Solution**: Verify using SettingsGroup (not raw NavigationLink), and not wrapping SettingsContainer in custom NavigationStack\u002FNavigationSplitView.\n\n### Problem: Search can't find my custom settings\n**Solution**: Add `.settingsTags([...])` to groups with relevant keywords. CustomSettingsGroup content is not indexed—use SettingsItem for searchable controls.\n\n---\n\n## Complete Setup Checklist\n\nUse this checklist to verify your setup:\n\n- [ ] SettingsKit package added (1.0.0+) via Swift Package Manager\n- [ ] Minimum platform versions met (iOS 17+ \u002F macOS 14+ \u002F Swift 6.0+)\n- [ ] Settings model uses @Observable (not ObservableObject)\n- [ ] SettingsContainer protocol implemented with settingsBody\n- [ ] @Bindable wrapper used before creating bindings\n- [ ] Settings model injected into environment (.environment(settings))\n- [ ] Settings groups use .settingsTags([...]) for search\n- [ ] App compiles without errors\n- [ ] Settings UI displays correctly on target platforms\n- [ ] Search functionality works (try searching for tagged keywords)\n- [ ] Settings state persists and updates reactively\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fapi-reference.md` for detailed API documentation\n2. Review `references\u002Fadvanced-patterns.md` for complex scenarios\n3. Verify all steps in the 4-step setup process\n4. Check official repository: https:\u002F\u002Fgithub.com\u002FAeastr\u002FSettingsKit\n5. Ensure Swift 6.0+ and iOS 17+ \u002F macOS 14+ requirements met\n\n---\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill swift-settingskit",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill swift-settingskit",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill swift-settingskit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002FSKILL.md",true,[48,54,58,62,66,72,76,80,84],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fbasic-settings-template.swift","ASSET","资产文件",5783,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Fassets\u002Fbasic-settings-template.swift",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Fcustom-style-template.swift",13047,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Fassets\u002Fcustom-style-template.swift",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"assets\u002Fdemo-app-template.swift",14660,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Fassets\u002Fdemo-app-template.swift",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"assets\u002Fmodular-settings-template.swift",14114,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Fassets\u002Fmodular-settings-template.swift",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fadvanced-patterns.md","REFERENCE","参考文档",22762,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Freferences\u002Fadvanced-patterns.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fapi-reference.md",17250,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Freferences\u002Fapi-reference.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fperformance-edge-cases.md",12352,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Freferences\u002Fperformance-edge-cases.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fsearch-implementation.md",19975,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Freferences\u002Fsearch-implementation.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fstyling-guide.md",20109,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fswift-settingskit\u002Freferences\u002Fstyling-guide.md",[89,98,107,116,122,128],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[95,96,97],"model","model hierarchy","model hierarchy skill",{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[104,105,106],"MCP","zoom","zoom mcp",{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[113,114,115,105],"sdk","zoom apps sdk","apps",{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[118],{"skillNo":123,"name":124,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[124],{"skillNo":129,"name":130,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[130]]