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

Update the first two examples snippets #223

Merged
merged 1 commit into from
May 1, 2015

Conversation

kmikael
Copy link
Contributor

@kmikael kmikael commented Apr 26, 2015

  • Use Swift 1.2 syntax: multiple if-let clauses
  • Use Swift objects, that is [String; AnyObject] instead of NSDictionary
  • In the second example, cast the final result to String
  • Don't use NSJSONReadingOptions.MutableContainers, it does make the example look more awful than it is, but it is rarely needed...

- Use Swift 1.2 syntax: multiple if-let clauses
- Use Swift objects, that is `[String; AnyObject]` instead of `NSDictionary`
- In the second example, cast the final result to String
- Don't use `NSJSONReadingOptions.MutableContainers`, it does make the example look more awful than it is, but it is rarely needed...
LukeTangPL added a commit that referenced this pull request May 1, 2015
Update the first two examples snippets
@LukeTangPL LukeTangPL merged commit 79af3b8 into SwiftyJSON:master May 1, 2015
@LukeTangPL
Copy link
Member

@kmikael thanks.

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

2 participants