Swiftpack.co - elegantchaos/KeyValueStore as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by elegantchaos.
elegantchaos/KeyValueStore v1.2.0
A uniform API for UserDefaults, NSUbiquitousKeyValueStore, and (potentially) other classes.
⭐️ 0
🕓 2 years ago
iOS macOS
.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

KeyValueStore

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...

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.2
3 years ago

Added remove(key: method.

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