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
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 achieve something, instead of copy
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
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
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.
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 number string. Simple Swift syntax and a