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

Fix/mapping size #23

Merged
merged 2 commits into from Oct 19, 2016
Merged

Fix/mapping size #23

merged 2 commits into from Oct 19, 2016

Conversation

zenangst
Copy link
Contributor

We had a minor bug in the init method that maps size to Item.
This was caused by type-casting that worked in earlier versions of Swift but it no longer supported.

What we do to fix this issue is to resolve the value as a Double and the create a CGSize using both width and height from the JSON payload.

Improved the tests to take size into account when testing the Item.

@vadymmarkov vadymmarkov merged commit 5f3e804 into master Oct 19, 2016
@vadymmarkov vadymmarkov deleted the fix/mapping-size branch October 19, 2016 07: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.

None yet

4 participants