Check out example codes for "number of characters in a string swift". It will help you in understanding the concepts better.

Code Example 1

test1.count

Learn ReactJs, React Native from akashmittal.com