Yesterday I mentioned a nice Swift library for working with dates.
Here’s an open source Swift library providing a number of helper functions and extensions for cryptography called CryptoSwift from Marcin Krzyzanowski.
Specifically CryptoSwift makes it easy to hash and unhash MD5, SHA1, and SHA256 data. The library is pretty extensive, and you’ll need to look through the code to find everything.
This example modified from the readme shows the enum usage, direct method, and string methods for hashing data:
I’ve mentioned a number of Swift helper libraries such as Dollar.$wift which provides a functional programming toolbelt inspired by Underscore.js and Asterism.
Here’s a library providing an extensive date helper that extends NSDate providing dozens of new functions for setting, comparing, adjusting, printing, calculating intervals, and decomposing dates into their components.
This example from the readme shows off the date from string functionality of the library:
NSDate(fromString: "16 July 1972 6:12:00 ", format: .Custom("dd MMM yyyy HH:mm:ss")) -> NSDate
// Date from ISO8601 String
NSDate(fromString: "1972-07-16T08:15:30-05:00", format: .ISO8601) -> NSDate
// Date from DotNetJSON String
NSDate(fromString: "/Date(1260123281843)/", format: .DotNet) -> NSDate
// Date from RSS String
NSDate(fromString: "Fri, 09 Sep 2011 15:26:08 +0200", format: .RSS) -> NSDate
// Date from AltRSS String
NSDate(fromString: "09 Sep 2011 15:26:08 +0200", format: .AltRSS) -> NSDate -> NSDate
You can find AFDateHelper on Github here.
I’ve mentioned a number of components utilizing pull-to-refresh most recently a custom pull to refresh component allowing you to present the user with options to select from using a swipe gesture on pull called MNTPullToReact.
Here’s an open source library providing a custom table view with built-in pull to refresh and other nice features called TMOTableView from Duowan.
Last month I mentioned an interesting faster than SQLite database with code based queries and support for Swift language features called Realm.
Here’s a library submitted by Vanderlei Martinelli called AlecrimCoreData that provides a Swift based wrapper for Core Data inspired by MagicalRecord and Linq.
AlecrimCoreData provides extensive features for fetching, creating, updating and saving entities and allows you to easily fetch and save entities in a background thread if desired.
Last month I mentioned a Swift math library inspired by NumPy providing a number of utility functions for performing matrix math.
Here’s a library from Mattt Thompson that uses a feature allowing you to use symbols are custom operators providing an implementation for many different math symbols.
In total there are over 40 symbols implemented within Euler.
You can find Euler on Github here.