TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2016 |
SPMSupports SPM | ✗ |
Maintained by Macbook.
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.
The example project includes a simple countdown timer with an implementation of the coundown delegate, completion closure, and stop/restart notifications.
ASTimer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ASTimer"
asowers1, [email protected]
ASTimer is available under the WTFPL license. See the LICENSE file for more info.