Initializer

init(_:)

Creates a character containing the given Unicode scalar value.

Declaration

init(_ content: Unicode.Scalar)

Parameters

content

The Unicode scalar value to convert into a character.

See Also

Working with a Character’s Unicode Values

var isASCII: Bool

A Boolean value indicating whether this is an ASCII character.

var asciiValue: UInt8?

The ASCII encoding value of this character, if it is an ASCII character.