Get Updates By E-mail 

Article Written By:
Johann Dowa

Formatting – Swift Library For Functional Type Safe String Formatting

  •  
  •  
  •  
  •  
  •  

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:

let greet =
  format("Hello, " % string % "!")

greet("world")                         // Hello, world!

You can find Formatting on Github here.

A nice Swift string formatting library.


  •  
  •  
  •  
  •  
  •  

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.

Comments