[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79AKW2RDB7RB1GYEQCF958A":3,"skill-same:01M79AKW2RDB7RB1GYEQCF958A":107},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":14,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M79AKW2RDB7RB1GYEQCF958A","swift-settingskit",null,"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.","Elogic360\u002Fsoftware-factory","Elogic360","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156535519?v=4","01M74NH3F0RB13PWB7JZDE2V80","elogic360","01M74NH3FPC65082MDZVMFHDM3",0,"MIT","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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\nmetadata:\n  keywords:\n    - SettingsKit\n    - SwiftUI settings\n    - settings interface\n    - preferences UI\n    - searchable settings\n    - settings navigation\n    - SettingsContainer\n    - SettingsGroup\n    - SettingsItem\n    - CustomSettingsGroup\n    - settings tags\n    - settings search\n    - Observable settings\n    - Bindable settings\n    - iOS 17\n    - macOS 14\n    - Swift 6\n    - settings style\n    - sidebar settings\n    - declarative settings\n    - settings hierarchy\n\nlicense: MIT\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",{"name":5,"license":15,"metadata":24,"description":7},{"keywords":25},[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"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","main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","integrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill swift-settingskit",{"tool":59,"command":60},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill swift-settingskit",{"tool":62,"command":63},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill swift-settingskit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002FSKILL.md",true,[67,73,77,81,85,91,95,99,103],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"assets\u002Fbasic-settings-template.swift","ASSET","资产文件",5783,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Fassets\u002Fbasic-settings-template.swift",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"assets\u002Fcustom-style-template.swift",13047,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Fassets\u002Fcustom-style-template.swift",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"assets\u002Fdemo-app-template.swift",14660,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Fassets\u002Fdemo-app-template.swift",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"assets\u002Fmodular-settings-template.swift",14114,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Fassets\u002Fmodular-settings-template.swift",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fadvanced-patterns.md","REFERENCE","参考文档",22762,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Freferences\u002Fadvanced-patterns.md",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fapi-reference.md",17250,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Freferences\u002Fapi-reference.md",{"path":96,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fperformance-edge-cases.md",12352,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Freferences\u002Fperformance-edge-cases.md",{"path":100,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fsearch-implementation.md",19975,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Freferences\u002Fsearch-implementation.md",{"path":104,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fstyling-guide.md",20109,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fswift-settingskit\u002Fskills\u002Fswift-settingskit\u002Freferences\u002Fstyling-guide.md",[108,116,123,130,137,144],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M79G206MT3J6S0GY3C45P2KV","vss-summarize-video","Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-summarize-video\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M79G1WN63PGRE8CKD47WEBQ5","vss-setup-video-analytics-api","Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-video-analytics-api\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M79G1S9F7VY3EF6H53PRP5AN","vss-setup-behavior-analytics","Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-behavior-analytics\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M79G1N1S1Y27PFZPYMNK1MTQ","vss-search-archive","Use this skill to run top-level VSS fusion search on archived video, or to ingest video files \u002F RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-search-archive\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M79G1H6WN0Q6C0VCAXCZX6B7","vss-query-analytics","Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-query-analytics\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":19},"01M79G1DYPNXQS7QHZ0AAF5FX5","vss-manage-video-io-storage","Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add\u002Fdelete sensors and streams). Not for VLM inference or search.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-manage-video-io-storage\u002FSKILL.md",[],[]]