25 Feb 2016

     Welcome to SwiftDate 3 a Date Management Library for Apple's platforms: the goal of this project is to allow developers to manage easily dates operation and timezones conversions in Swift. SwiftDate allows you to:  Perform calculations with dates: aDate + 2.weeks + 1.hours or (1.years - 2.hours + 16.minutes).fromNow()  Compare dates with math operators <,>,==,<=,&g...

24 Feb 2016

Highlights Two Custom Structs Only (value types FTW!): DateView: An NSDate associated with an NSCalendar CalendarComponents: Like NSDateComponents, but NSCalendar agnostic. Absolutely Zero Hardcode: Only hardcode now is to clear the date components, by setting the value to 0 or 1. Nothing like: minutes = seconds * 60. Modular Composition Design: Only one way to achie...

24 Feb 2016

An NSDate Extension for Swift 2.0 Usage To run the example project, clone or download the repo, and run. Creating Date from String // Date from String with custom format NSDate(fromString: "16 July 1972 6:12:00 ", format: .Custom("dd MMM yyyy HH:mm:ss")) -> NSDate // Date from ISO8601(Year) String NSDate(fromString: "2009", format: .ISO8601(nil)) -> NSDate // Date fr...

23 Feb 2016

SwiftString is a lightweight string extension for Swift. This library was motivated by having to search StackOverflow for common string operations, and wanting them to be in one place with test coverage. Installation SwiftString is available through CocoaPods. To install it, simply add the following line to your Podfile: pod "SwiftString" Usage import SwiftString Methods b...

23 Feb 2016

Simple formatting syntax for decimal numbers, currency, mass, addresses, ordinal numbers and hexadecimal colors. Usage Import Format at the top of the Swift file with the content you would like to format. import Format Number Formatting Format provides a formatting extension for all number types. To format an Int to two decimal places: let formattedNumber = 45.format(Decimals...

23 Feb 2016

   PhoneNumberKit Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.  PhoneNumberKit is currently beta software  Remaining Objectives ⚔ Battle-test PhoneNumberKit in a major app (100k+ users). Features Features Validate, normalize and extract the elements of any phone nu...