Some time ago I mentioned an objective-c library for working with dates inspired by Moment.js.
Here’s an open source Swift library from Adrian Kosmaczewski for working with dates inspired by Moment.js called SwiftMoment.
With SwiftMoment you can create, format, manipulate, calculate, and compare dates similar to how you would with Moment.js library, and also manipulate dates using some Swift features.
Here is an example showing how you can create duration values with a very clean syntax using the included Int extension:
And how you can easily create dates:
You can find SwiftMoment on Github here.
An excellent Swift library for working with dates.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.