How to get string characters count in swift 5

Solution:

In swift 4 we are using the below code to find the characters in a particular string

charactrers.count

In swift 5 we are using the below code

string.count

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift