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.
To run the example project, clone the repo, and run
pod install from the Example directory first.
ASTimer is available for iOS 8.* and above.
ASTimer is available through CocoaPods. To install it, simply add the following line to your Podfile:
ASTimer is available under the WTFPL license. See the LICENSE file for more info.