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

Allow decode from data #239

Closed
mitchins opened this issue Jan 23, 2020 · 8 comments
Closed

Allow decode from data #239

mitchins opened this issue Jan 23, 2020 · 8 comments

Comments

@mitchins
Copy link

I couldn't find a mention of the word data in Readme.md and just wondering if there's a significant reason that decodeFrom is only available with string not data?

@MPLew-is
Copy link

This looks like it's been fixed by #262 (6e6483a).

@jpsim
Copy link
Owner

jpsim commented Jul 23, 2020

Right, thanks for the ping.

@jpsim jpsim closed this as completed Jul 23, 2020
@druvinskiy
Copy link

Is there a way to decode from Data without using Combine?

@MPLew-is
Copy link

@druvinskiy you don't need to use Combine to decode from Data, that just seems to have happened to be the motivating factor for adding it. See the relevant lines in YamlDecoder.

@druvinskiy
Copy link

@MPLew-is Thank you for the information. Unfortunately, autocomplete is only giving me the version of the function that accepts a String and not the version that accepts Data. Any ideas why this is happening?

@jpsim
Copy link
Owner

jpsim commented Aug 16, 2020

Are you using Yams from master? The Data decoding hasn't made it into a tagged release yet. #262

@druvinskiy
Copy link

Oh, I just installed Yams using Cocoapods. Can you please explain how I should install Yams so I have access to the Data decoding?

@jpsim
Copy link
Owner

jpsim commented Aug 21, 2020

Use the master branch or wait for a new release.

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

No branches or pull requests

4 participants