init(nilLiteral:)
Creates an instance initialized with nil.
Declaration
init(nilLiteral: ())Discussion
Do not call this initializer directly. It is used by the compiler when you initialize an Optional instance with a nil literal. For example:
var i: Index? = nilIn this example, the assignment to the i variable calls this initializer behind the scenes.