Category: Swift

String extension for range of characters/character at nth position

String extension for range of characters/character at nth position

I spotted this extension somewhere online a while ago (kjmcneish?) that can come in pretty handy.

Usage: