Skip to content

Commit

Permalink
Tweaks and fixes to readme and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 committed May 7, 2016
1 parent 2811323 commit dba57a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Fixed issues:

## 2.2.1

Fixed issues:

- Fix for using CR + LF in localized strings (by @tomlokhorst)
This is an incorrectly released version and is therefore exactly the same as 2.2.0.

## 2.2.0

Expand Down
4 changes: 3 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ Currently you type:
let icon = UIImage(named: "settings-icon")
let font = UIFont(name: "San Francisco", size: 42)
let viewController = CustomViewController(nibName: "CustomView", bundle: nil)
let string = String(format: NSLocalizedString("welcome.withName", comment: ""), locale: NSLocale.currentLocale(), "Arthur Dent")
```

With R.swift it becomes:
```swift
let icon = R.image.settingsIcon()
let font = R.font.sanFrancisco(size: 42)
let viewController = CustomViewController(nib: R.nib.customView)
let string = R.string.localizable.welcomeWithName("Arthur Dent")
```

Check out [more examples of R.swift based code](Documentation/Examples.md)!
Expand Down Expand Up @@ -64,7 +66,7 @@ Runtime validation with [`R.assertValid()`](Documentation/Examples.md#runtime-va
- [How to use methods with a `Void` argument?](Documentation/QandA.md#how-to-use-methods-with-a-void-argument)
- [How to fix missing imports in the generated file?](Documentation/QandA.md#how-to-fix-missing-imports-in-the-generated-file)
- [How does R.swift work?](Documentation/QandA.md#how-does-rswift-work)
- [How to upgrade to 1.0?](Documentation/Migration.md)
- [How to upgrade to a new major version?](Documentation/Migration.md)

## Installation

Expand Down

0 comments on commit dba57a8

Please sign in to comment.