Skip to content

Instantly share code, notes, and snippets.

@chenr2
Created July 18, 2015 01:15
Show Gist options
  • Save chenr2/3fc92e9264bb01dedb97 to your computer and use it in GitHub Desktop.
Save chenr2/3fc92e9264bb01dedb97 to your computer and use it in GitHub Desktop.
Swift: Count

How to count characters in a string

Just use count

count(textView.text!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment