Contents

isSymbol

A Boolean value indicating whether this character represents a symbol.

Declaration

var isSymbol: Bool { get }

Discussion

This property is true only for characters composed of scalars in the “Math_Symbol”, “Currency_Symbol”, “Modifier_Symbol”, or “Other_Symbol” categories in the Unicode Standard.

For example, the following characters all represent symbols:

  • “®” (U+00AE REGISTERED SIGN)

  • “⌹” (U+2339 APL FUNCTIONAL SYMBOL QUAD DIVIDE)

  • “⡆” (U+2846 BRAILLE PATTERN DOTS-237)

See Also

Inspecting a Character