Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Latest commit

 

History

History
22 lines (13 loc) · 703 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 703 Bytes

Association Service

An abstraction for working with key value storage (e.g., UserDefaults, NSUbiquitousKeyValueStore, Keychain).

Features

  • storing, loading and deleting item for key.
  • storing codable items (with automatic encoding and decoding).
  • getting all keys.
  • clearing the storage.

Implementations

UserDefaultsService

An implementation for Foundation's UserDefaults and option to sync with an NSUbiquitousValueStore (iCloud).

KeychainService

An implementation for storing data securely in Apple's Keychain. (abstracts away all the clunky Obj-C APIs)

Note: Only provides basic functionality for now (always uses the account field as key) -> not for complex use cases