Skip to content

Commit b5009e9

Browse files
committed
Improve README
1 parent 61335a1 commit b5009e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![CI Status](https://api.travis-ci.org/radex/SwiftyTimer.svg?branch=master)](https://travis-ci.org/radex/SwiftyTimer)
55
[![CocoaPods](http://img.shields.io/cocoapods/v/SwiftyTimer.svg)](https://cocoapods.org/pods/SwiftyTimer)
66
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](#carthage)
7-
![Swift version](https://img.shields.io/badge/swift-2.1-orange.svg)
7+
![Swift version](https://img.shields.io/badge/swift-2.2-orange.svg)
88

99
#### Modern Swifty API for `NSTimer`
1010
###### SwiftyTimer allows you to instantly schedule delays and repeating timers using convenient closure syntax. It's time to get rid of Objective-C cruft.
@@ -25,12 +25,10 @@ NSTimer.after(1.minute) {
2525
}
2626
```
2727

28-
SwiftyTimer uses closures instead of target/selector/userInfo.
29-
30-
You can specify time intervals with intuitive [Ruby on Rails](http://rubyonrails.org)-like helpers:
28+
You can specify time intervals with these intuitive helpers:
3129

3230
```swift
33-
100.milliseconds
31+
100.ms
3432
1.second
3533
2.5.seconds
3634
5.seconds
@@ -45,6 +43,8 @@ You can pass method references instead of closures:
4543
NSTimer.every(30.seconds, align)
4644
```
4745

46+
### Manual scheduling
47+
4848
If you want to make a timer object without scheduling, use `new(after:)` and `new(every:)`:
4949

5050
```swift

0 commit comments

Comments
 (0)