LeadKit/TISwiftUtils
Ivan Smolin 532e54fe9e feat: Network services in TIMoyaNetworking now passes MoyaError in result of EnpointRequest execution.
feat: TINetworkingCache module - caching results of EndpointRequests.
2022-04-15 14:21:28 +03:00
..
Sources feat: add TIMoyaNetoworking target; async closure typealiases to TISwiftUtils; Date formatting & decoding helpers to TIFoundationUtils 2022-02-18 22:26:09 +03:00
README.md update READMEs 2020-10-23 10:24:22 +03:00
TISwiftUtils.podspec feat: Network services in TIMoyaNetworking now passes MoyaError in result of EnpointRequest execution. 2022-04-15 14:21:28 +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
}