Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete support for optional values in UserDefaultsStore #150

Open
yakovmanshin opened this issue May 13, 2024 · 0 comments
Open

Complete support for optional values in UserDefaultsStore #150

yakovmanshin opened this issue May 13, 2024 · 0 comments
Labels
new New feature or request
Milestone

Comments

@yakovmanshin
Copy link
Owner

yakovmanshin commented May 13, 2024

@yakovmanshin yakovmanshin added the new New feature or request label May 13, 2024
@yakovmanshin yakovmanshin added this to the YMFF Next milestone May 13, 2024
yakovmanshin added a commit that referenced this issue May 13, 2024
* `UserDefaults` does not accept `nil` as the value in a record
* Upon finding a `nil`, `UserDefaults` raises an exception which crashes the client app
* This fix does not add complete support for optionals but addresses the crash by checking the type against the `ExpressibleByNilLiteral` protocol and throwing the `optionalValuesAreNotSupported` error
* Complete support for optionals in `UserDefaultsStore` is planned for #150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant