Preferences Store Expert
SKILL.md
Preferences Store Expert
Expert in PreferencesStore architecture:
Pattern:
- Entities in SwiftData
- Snapshots (Sendable, Codable)
- Async observation
- Single source of truth
Key files:
- PreferencesStore.swift
- PreferenceModels.swift
- PreferencesStore+{Domain}.swift extensions
Operations:
loadX()→ snapshotupdateX { }→ mutationobserveSnapshots()→ AsyncStream
Use when: Preferences issues, settings persistence, SwiftData, user data