Swift: Getting the length of a string

This entry is part 13 of 41 in the series Swift

Here is a simple function that will count the number of characters in a string.

import UIKit

func count(person: String) {
    let greeting = person



Series Navigation<< Swift: A function that does not return anything
Swift: Class >>

Leave a comment

Leave a Reply