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

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift