Swiftpack.co -  elegantchaos/KeyValueStore as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A uniform API for UserDefaults, NSUbiquitousKeyValueStore, and (potentially) other classes.
.package(url: "https://github.com/elegantchaos/KeyValueStore.git", from: "v1.2.0")

Test results Latest release swift 5.3 shield swift dev shield Platforms: macOS, iOS


The UserDefaults and NSUbiquitousKeyValueStore classes are pretty much interchangeable, but have slightly different APIs.

This package defines a KeyValueStore protocol which abstracts these differences.

In the future, other classes/structs (eg Dictionary) could also be made to conform to this protocol. Pull-requests gratefully accepted...


Stars: 0
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Release Notes

25 weeks ago

Added remove(key: method.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API