LeadKit/TISwiftUtils
Ivan Smolin eaea4abd75 feat: TIApplication module and other fixes and improvements 2023-08-23 20:49:23 +03:00
..
Sources Merge branch 'master' into feature/bottom-sheet 2023-07-24 11:23:40 +03:00
README.md update READMEs 2020-10-23 10:24:22 +03:00
TISwiftUtils.podspec feat: TIApplication module and other fixes and improvements 2023-08-23 20:49:23 +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
}