Skip to content

Commit dba57a8

Browse files
committed
Tweaks and fixes to readme and changelog
1 parent 2811323 commit dba57a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Changelog.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ Fixed issues:
66

77
## 2.2.1
88

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

1311
## 2.2.0
1412

Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ Currently you type:
1414
let icon = UIImage(named: "settings-icon")
1515
let font = UIFont(name: "San Francisco", size: 42)
1616
let viewController = CustomViewController(nibName: "CustomView", bundle: nil)
17+
let string = String(format: NSLocalizedString("welcome.withName", comment: ""), locale: NSLocale.currentLocale(), "Arthur Dent")
1718
```
1819

1920
With R.swift it becomes:
2021
```swift
2122
let icon = R.image.settingsIcon()
2223
let font = R.font.sanFrancisco(size: 42)
2324
let viewController = CustomViewController(nib: R.nib.customView)
25+
let string = R.string.localizable.welcomeWithName("Arthur Dent")
2426
```
2527

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

6971
## Installation
7072

0 commit comments

Comments
 (0)