๐Ÿฆ SwiftServe Get

Menu / storage.key-value

Can Swift packages do key-value storage?

also known as: defaults wrapper ยท user defaults ยท preferences

PackageiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
cache full menu as of 7.4.0
Details
โœ“

serves it ยท confidence 0.90 ยท as of 7.4.0

โœ“

serves it ยท confidence 0.90 ยท as of 7.4.0

โœ“

serves it ยท confidence 0.85 ยท as of 7.4.0

โœ“

serves it ยท confidence 0.90 ยท as of 7.4.0

โœ“

serves it ยท confidence 0.85 ยท as of 7.4.0

โœ“

serves it ยท confidence 0.70 ยท as of 7.4.0

  • StorageAware.setObject
    Source/Shared/Storage/StorageAware.swift:44
    View the line on GitHub โ†’
    Surface digest resolves this decl present on linux (no gap); source is Foundation-only under Source/Shared with no os() guards, but there is no Linux CI or README corroboration - confidence reduced.
  • StorageAware.object
    Source/Shared/Storage/StorageAware.swift:23
    View the line on GitHub โ†’
  • StorageAware.allKeys
    Source/Shared/Storage/StorageAware.swift:11
    View the line on GitHub โ†’
โœ“

serves it ยท confidence 0.85 ยท as of 7.4.0

boutique as of 3.0.2
Details
โœ“

serves it ยท confidence 0.70 ยท as of 3.0.2

  • StoredValue
    Sources/Boutique/StoredValue.swift:56
    View the line on GitHub โ†’
    @StoredValue property wrapper persists a single Item in UserDefaults
  • StoredValue.init
    Sources/Boutique/StoredValue.swift:73
    View the line on GitHub โ†’
    init(wrappedValue:key:storage: UserDefaults = .standard) โ€” key-value storage keyed by String
  • StoredValue.set
    Sources/Boutique/StoredValue.swift:135
    View the line on GitHub โ†’
    func set(_ item: Item) โ€” writes the value for the wrapper's key
โœ“

serves it ยท confidence 0.70 ยท as of 3.0.2

  • StoredValue
    Sources/Boutique/StoredValue.swift:56
    View the line on GitHub โ†’
    @StoredValue property wrapper persists a single Item in UserDefaults
  • StoredValue.init
    Sources/Boutique/StoredValue.swift:73
    View the line on GitHub โ†’
    init(wrappedValue:key:storage: UserDefaults = .standard) โ€” key-value storage keyed by String
  • StoredValue.set
    Sources/Boutique/StoredValue.swift:135
    View the line on GitHub โ†’
    func set(_ item: Item) โ€” writes the value for the wrapper's key
โœ“

serves it ยท confidence 0.70 ยท as of 3.0.2

  • StoredValue
    Sources/Boutique/StoredValue.swift:56
    View the line on GitHub โ†’
    @StoredValue property wrapper persists a single Item in UserDefaults No explicit watchOS floor in Package.swift (manifest lists only iOS/macOS); symbol anchors are unconditional and the digest resolves them present on watchOS.
  • StoredValue.init
    Sources/Boutique/StoredValue.swift:73
    View the line on GitHub โ†’
    init(wrappedValue:key:storage: UserDefaults = .standard) โ€” key-value storage keyed by String
  • StoredValue.set
    Sources/Boutique/StoredValue.swift:135
    View the line on GitHub โ†’
    func set(_ item: Item) โ€” writes the value for the wrapper's key
โœ“

serves it ยท confidence 0.70 ยท as of 3.0.2

  • StoredValue
    Sources/Boutique/StoredValue.swift:56
    View the line on GitHub โ†’
    @StoredValue property wrapper persists a single Item in UserDefaults No explicit tvOS floor in Package.swift (manifest lists only iOS/macOS); symbol anchors are unconditional and the digest resolves them present on tvOS.
  • StoredValue.init
    Sources/Boutique/StoredValue.swift:73
    View the line on GitHub โ†’
    init(wrappedValue:key:storage: UserDefaults = .standard) โ€” key-value storage keyed by String
  • StoredValue.set
    Sources/Boutique/StoredValue.swift:135
    View the line on GitHub โ†’
    func set(_ item: Item) โ€” writes the value for the wrapper's key
โœ“

serves it ยท confidence 0.70 ยท as of 3.0.2

  • StoredValue
    Sources/Boutique/StoredValue.swift:56
    View the line on GitHub โ†’
    @StoredValue property wrapper persists a single Item in UserDefaults No explicit visionOS floor in Package.swift (manifest lists only iOS/macOS); symbol anchors are unconditional and the digest resolves them present on visionOS.
  • StoredValue.init
    Sources/Boutique/StoredValue.swift:73
    View the line on GitHub โ†’
    init(wrappedValue:key:storage: UserDefaults = .standard) โ€” key-value storage keyed by String
  • StoredValue.set
    Sources/Boutique/StoredValue.swift:135
    View the line on GitHub โ†’
    func set(_ item: Item) โ€” writes the value for the wrapper's key
?

not verified yet ยท confidence 0.20 ยท as of 3.0.2

  • StoredValue
    Sources/Boutique/StoredValue.swift:56
    View the line on GitHub โ†’
    Surface digest resolves this decl present on linux (no os() conditions anywhere in the public surface), but the module unconditionally imports SwiftUI, Security, and Observation; Package.swift and README declare only iOS 17+/macOS 14+. Linux buildability unverified โ€” honest answer is unknown.
โœ“

serves it ยท confidence 0.70 ยท as of 3.0.2

  • StoredValue
    Sources/Boutique/StoredValue.swift:56
    View the line on GitHub โ†’
    @StoredValue property wrapper persists a single Item in UserDefaults No explicit macCatalyst floor in Package.swift (manifest lists only iOS/macOS); symbol anchors are unconditional and the digest resolves them present on macCatalyst.
  • StoredValue.init
    Sources/Boutique/StoredValue.swift:73
    View the line on GitHub โ†’
    init(wrappedValue:key:storage: UserDefaults = .standard) โ€” key-value storage keyed by String
  • StoredValue.set
    Sources/Boutique/StoredValue.swift:135
    View the line on GitHub โ†’
    func set(_ item: Item) โ€” writes the value for the wrapper's key
defaults as of 9.0.9
Details
โœ“

serves it ยท confidence 0.90 ยท as of 9.0.9

โœ“

serves it ยท confidence 0.90 ยท as of 9.0.9

โœ“

serves it ยท confidence 0.90 ยท as of 9.0.9

โœ“

serves it ยท confidence 0.90 ยท as of 9.0.9

โœ“

serves it ยท confidence 0.90 ยท as of 9.0.9

?

not verified yet ยท confidence 0.20 ยท as of 9.0.9

  • Package.swift:7
    View the line on GitHub โ†’
    Manifest lists Apple platforms only (not absence evidence). Digest records no os() gaps, so unsupported cannot be claimed; core target unconditionally imports SwiftUI/Combine (Apple-only frameworks), making linux presence unverified and doubtful.
  • readme.md:0
    View the line on GitHub โ†’
    README Compatibility section lists macOS/iOS/tvOS/watchOS/visionOS only; linux never mentioned.
โœ“

serves it ยท confidence 0.80 ยท as of 9.0.9

โœ“ serves it ยท โ— with conditions ยท โœ• not served (proven) ยท ? not verified yet โ€” hover any verdict for the receipt, click to pin it