Format Strings with Templates in Swift

Gordon Fontenot published his StringTemplate library the other day. You can use it as a much better number formatter, for example:

There are options to ignore overflow or crop the remainder when only inserting part of the required digits. I think that's pretty slick!

Browse the blog archive