Omar Elsayed welcomes support for UserDefaults through GitHub Sponsors. If you find this package useful, please consider supporting it.
When working with an Xcode project:
When working with a Swift Package Manager manifest:
Select a package version:
1.4.0
main
This is very easy API to use to easily access and set userDefaults value in Swift and it supports the new privacy rules from apple.