Every.swift alternatives and similar libraries
Based on the "Date & Time" category.
Alternatively, view Every.swift alternatives based on common mentions on social networks and blogs.
-
SwiftDate
๐ Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift. -
NSDate-TimeAgo
A "time ago", "time since", "relative date", or "fuzzy date" category for NSDate and iOS, Objective-C, Cocoa Touch, iPhone, iPad. -
SwiftMoment
A time and calendar manipulation library written in Swift 2 -
Schedule
Schedule timing task in Swift using a fluent API. (A friendly alternative to Timer) -
TrueTime
NTP library for Swift and Objective-C. Get the true time impervious to device clock changes. -
iso-8601-date-formatter
A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats. -
10Clock
This Control is a beautiful time-of-day picker heavily inspired by the iOS 10 "Bedtime" timer. -
Solar
A Swift micro library for generating Sunrise and Sunset times. -
TimeZonePicker
A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone. -
EmojiTimeFormatter
๐ Format your dates/times as emojis.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Every.swift or a related project?
README
Every.Swift - A Convenient NSTimer Wrapper
Usage
Provided that your class implement TimerManageable
protocol you just do:
self.every(3.seconds) {
print("hello")
return true
}
Prints "hello" every 3 seconds.
Return true
from the closure to continue , false
to invalidate the timer.
Alternatively , you can use the following method to invalidate all timers of the receiver:
self.clearTimers()
Normally you're are responsible of invalidating the timers you created. If the timer is not invalidated before the object it's been tied to it will be invalidated next time the timer is elapsed and before calling the ElapsedHandler
.
TODO :
- [x] Investigate automatic invalidation of timer if owner is Swift object.
- [x] Add a project and test target.
- [ ] Improve unit test coverage.
- [x] Support milliseconds.
- [ ] Embed in a framework.
- [ ] More representative example application.
- [ ] OS X support.
- [ ] Carthage support.
- [x] CocoaPod support.