find length of string in swift code example
Example 1: find length of string in swift
let message = "Hello, World!"
// count length of a string
print(message.count) // 13Copied
Example 2: Find length of string in swift
let message = "Hello, World!"
// count length of a string
print(message.count) // 13