PrismDefaultsStore
Type-safe UserDefaults wrapper with Codable support, key prefixing, and observation.Observation
SwiftUI Property Wrapper
PrismDiskStore
Actor-based file storage with atomic writes, TTL expiration, and disk quota enforcement.Directory Options
| Case | Path |
|---|---|
.documents | User documents |
.caches | System-managed cache |
.applicationSupport | Persistent app data |
.temporary | Temp directory |
.custom(URL) | Any path |
Quota Enforcement
ExceedingmaxSize throws PrismStorageError.quotaExceeded(bytes) on save. Check usage with totalSize().