Generic Initializer
init(_:)
Creates a new string containing the characters in the given sequence.
Parameters
characters
A string instance or another sequence of characters.
Discussion
You can use this initializer to create a new string from the result of one or more collection operations on a string’s characters. For example:
See Also
Creating a String
init<S>(S)
Creates a new instance of a collection containing the elements of a sequence.
init<S>(S)
Creates a new string containing the characters in the given sequence.