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

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift

Parse the value from string value iOS swift