Skip to content

Access UserDefaults with an Enumeration

Choose a tag to compare

@imattice imattice released this 24 Jun 05:14
· 7 commits to main since this release

Introduces the UserDefaultsKey protocol, which attaches to an enumeration that defines all keys used to access data stored in UserDefaults.

To help work with this, this release also includes extensions to functions in UserDefaults and AppStorage to allow direct use of the UserDefaultsKey