02

Here’s an open source library extending Swift’s string capability further called Swift String Tools from Jamal Kharrat.

Some of the functions the included String helpers allow you to perform are:

  • Get the language of the string
  • Check if a string can be used in a tweet
  • Check if a string contains a Date
  • Convert a string of dates to an array of dates
  • Check if a string contains a URL

You can find Swift String Tools on Github here.

A nice collection of Swift String helpers.