Initializer

init(extendedGraphemeClusterLiteral:)

Creates a character with the specified value.

Declaration

init(extendedGraphemeClusterLiteral value: Character)

Discussion

Do not call this initalizer directly. It is used by the compiler when you use a string literal to initialize a Character instance. For example:

let oBreve: Character = "o\u{306}"
print(oBreve)
// Prints "ŏ"

The assignment to the oBreve constant calls this initializer behind the scenes.

See Also

Infrequently Used Functionality

init(unicodeScalarLiteral: Character)

Creates an instance initialized to the given value.