🍦 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

  • Defaults
    Sources/Defaults/Defaults.swift:4
    View the line on GitHub →
    No macCatalyst gap recorded in surface digest; decl resolves present.
  • Defaults.Key
    Sources/Defaults/Defaults.swift:92
    View the line on GitHub →
    No macCatalyst gap recorded in surface digest; decl resolves present.
  • Package.swift:7
    View the line on GitHub →
    No explicit macCatalyst floor; Catalyst inherits the .iOS(.v14) floor by SwiftPM default. Confidence lowered accordingly.

✓ serves it · ◐ with conditions · ✕ not served (proven) · ? not verified yet — hover any verdict for the receipt, click to pin it