Storage package adding default implementations for three types of storages:
- File storage - defaults to the document directory for the app
- Object storage - defaults to user defaults
- Secure storage - defaults to keychain with "when unlocked" accessibility
All of the storage implementations use protocols so they can easily be overwritten by conforming to the protocols within the package.
Supports Swift Package Manager and Cocoapods.
Add one the following to the dependencies
array in your "Package.swift" file:
- If using http add:
.package(url: "https://github.com/gligorkot/GKStorageKit.git", from: Version("2.0.0"))
- If using ssh add:
.package(url: "git@github.com:gligorkot/GKStorageKit.git", from: Version("2.0.0"))
Or by adding https://github.com/gligorkot/GKStorageKit.git
, version 2.0.0 or later, to the list of Swift packages for any project in Xcode.
Add the following to your "Podfile":
pod 'GKStorageKit', '~> 2.x'