components(separatedBy:)

Returns an array containing substrings from the string that have been divided by characters in the given set.

Declaration

func components(separatedBy separator: CharacterSet) -> [String]