Skip to content

Commit

Permalink
Mention JSON mappers for Swift in Models section
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Richter committed Aug 28, 2015
1 parent 0e2cf6c commit b875750
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ These are the idiomatic ways for components to notify others about things:

### Models

Keep your models immutable, and use them to translate the remote API's semantics and types to your app. For Objective-C projects, Github's [Mantle](https://github.com/Mantle/Mantle) is a good choice. In Swift, much of this can be achieved simply by favoring structs over classes.
Keep your models immutable, and use them to translate the remote API's semantics and types to your app. For Objective-C projects, Github's [Mantle](https://github.com/Mantle/Mantle) is a good choice. In Swift, you can use structs instead of classes to ensure immutability, and use a parsing library such as [SwiftyJSON][swiftyjson] or [Argo][argo] to do the JSON-to-model mapping.

[swiftyjson]: https://github.com/SwiftyJSON/SwiftyJSON
[argo]: https://github.com/thoughtbot/Argo

### Views

Expand Down

0 comments on commit b875750

Please sign in to comment.