Formatting is an open source Swift library that allows you to perform functional string formatting, and adds type safety.
Formatting utilizes a syntax similar to common print formatting statements, but allows you to avoid common errors that can occur such as when a string is null or optional, and also allows you to compose formatters which can then be used as functions.
Created string formats can be used functionally like in this example from the readme:
format("Hello, " % string % "!")
greet("world") // Hello, world!
You can find Formatting on Github here.
A nice Swift string formatting library.
Original article: Formatting – Swift Library For Functional Type Safe String Formatting
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.