Skip to content

Commit

Permalink
Update readme with better intro example
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 committed Dec 3, 2015
1 parent d6b15f1 commit efd86dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Currently you type:
```swift
let icon = UIImage(named: "settings-icon")
let font = UIFont(name: "San Francisco", size: 42)
performSegueWithIdentifier("openSettings")
let viewController = CustomViewController(nibName: "CustomView", bundle: nil)
```

With R.swift it becomes:
```swift
let icon = R.image.settingsIcon
let font = R.font.sanFrancisco(size: 42)
performSegueWithIdentifier(R.segue.openSettings)
let viewController = CustomViewController(nib: R.nib.customView)
```

Check out [more examples of R.swift based code](Documentation/Examples.md)!
Expand Down

0 comments on commit efd86dc

Please sign in to comment.