Skip to content

Swift 4 refactoring - syntactical changes and new JSONDecoder()#9

Open
jrathert wants to merge 2 commits into
objcio:masterfrom
jrathert:master
Open

Swift 4 refactoring - syntactical changes and new JSONDecoder()#9
jrathert wants to merge 2 commits into
objcio:masterfrom
jrathert:master

Conversation

@jrathert

Copy link
Copy Markdown

There seem to be some pull requests for Swift 4 compatibility - this one also simplifies the code by making use of JSONDecoder().

Mainly some type conversions (get rid of NS*), rename of functions, syntactical sugar etc.
This simplifies the code a lot, as the parse closure is in Resources is (almost) independent of the actual type, and we do not need any specific initialisers any more. Only requirement is to make use of the new Decodable protocol for all structures used in JSON API
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