An NSTimer convenience library
Shell Swift Ruby Objective-C
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Pod
.gitignore
.travis.yml
ASTimer.podspec
ASTimerExample.gif
LICENSE
README.md
_Pods.xcodeproj

README.md

ASTimer

CI Status Version License Platform

ASTimer is a Swift based convenience library for NSTimer. ASTimer allows you to set timer completion closures, listen to timer ticks via its delegate, set names for your timers so you can differentiate them easily if you’re running more than one, and listen to NSNotificationCenter notifications to stop/restart the timer. Please feel free to submit a PR or issue.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

ASTimer is available for iOS 8.* and above.

Demonstration

The example project includes a simple countdown timer with an implementation of the coundown delegate, completion closure, and stop/restart notifications. alt tag

Installation

ASTimer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ASTimer"

Author

asowers1, asow123@gmail.com

License

ASTimer is available under the WTFPL license. See the LICENSE file for more info.