LeadKit/TISwiftUtils
Ivan Smolin e8780d0238 Update: `ViewSkeletonsConfiguration`. It's possible to enable or disable animation for specific skeletons now.
Added: `HolderViewSkeletonsConfiguration` for skeleton root view configuration
Added: `DashedBoundsLayer` can now be applied to `CALayer`
2024-02-09 16:14:32 +03:00
..
Sources feat: add universal DSL to TISwiftUtils, remove unused code 2023-08-24 12:07:43 +03:00
README.md update READMEs 2020-10-23 10:24:22 +03:00
TISwiftUtils.podspec Update: `ViewSkeletonsConfiguration`. It's possible to enable or disable animation for specific skeletons now. 2024-02-09 16:14:32 +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
}