LeadKit/TISwiftUtils
Ivan Smolin 18cd001ab9 feat: Base classes for encryption and decryption user token with pin code or biometry
Pin code validators
2022-12-19 16:32:44 +03:00
..
Sources fix: correct detection of the necessity of using attributed string 2022-12-15 14:03:08 +05:00
README.md update READMEs 2020-10-23 10:24:22 +03:00
TISwiftUtils.podspec feat: Base classes for encryption and decryption user token with pin code or biometry 2022-12-19 16:32:44 +03:00

README.md

TISwiftUtils

Bunch of useful helpers for development.

BackingStore

A property wrapper that wraps storage and defines getter and setter for accessing value from it.

Example

final class ViewModel {
    @BackingStore(store: UserDefaults.standard,
                  getClosure: { $0.bool(forKey: "hasFinishedOnboarding") },
                  setClosure: { $0.set($1, forKey: "hasFinishedOnboarding") })
    var hasFinishedOnboarding: Bool
}