Instance Propertyswift 6.0.1Swift

isMathSymbol

A Boolean value indicating whether this character represents a symbol that naturally appears in mathematical contexts.

var isMathSymbol: Bool { get }

For example, the following characters all represent math symbols:

  • “+” (U+002B PLUS SIGN)

  • “∫” (U+222B INTEGRAL)

  • “ϰ” (U+03F0 GREEK KAPPA SYMBOL)

The set of characters that have an isMathSymbol value of true is not a strict subset of those for which isSymbol is true. This includes characters used both as letters and commonly in mathematical formulas. For example, “ϰ” (U+03F0 GREEK KAPPA SYMBOL) is considered both a mathematical symbol and a letter.

This property corresponds to the “Math” property in the Unicode Standard.