Posted on December 7, 2015Author daryl Swift: Getting the length of a string This entry is part 13 of 41 in the series SwiftHere is a simple function that will count the number of characters in a string. import UIKit func count(person: String) { let greeting = person print(greeting.characters.count) } count("Carol") Series Navigation<< Swift: A function that does not return anythingSwift: Class >>