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

Native UserDefaults types should be decoded via the existing getter #1

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

swhitty
Copy link
Owner

@swhitty swhitty commented Aug 24, 2023

The UserDefaults getters for retrieving simple types like Bool and String include specific translations like converting the YES true string values into Bool types.

The UserDefaults.decode method that retrieves any Decodable type should special use the types to preserve compatibility with the getters.

@swhitty swhitty merged commit bc258e5 into main Aug 24, 2023
8 checks passed
@swhitty swhitty deleted the userdefaults-native branch August 24, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant