Creates an instance initialized to the given string value.
SDK
- Xcode 6.1+
Framework
- Swift Standard Library
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 next
constant calls this string literal initializer behind the scenes.