Contents

init(stringLiteral:)

Creates an instance initialized to the given string value.

Declaration

init(stringLiteral value: String)

Discussion

Do not call this initializer directly. It is used by the compiler when you initialize a string using a string literal. For example:

let nextStop = "Clark & Lake"

This assignment to the nextStop constant calls this string literal initializer behind the scenes.

See Also

Infrequently Used Functionality