---
title: isHexDigit
framework: swift
role: symbol
role_heading: Instance Property
path: swift/unicode/scalar/properties-swift.struct/ishexdigit
---

# isHexDigit

A Boolean value indicating whether the scalar is one that is commonly used for the representation of hexadecimal numbers or a compatibility equivalent.

## Declaration

```swift
var isHexDigit: Bool { get }
```

## Discussion

Discussion This property is true for all scalars for which isASCIIHexDigit is true as well as for their CJK halfwidth and fullwidth variants. This property corresponds to the “Hex_Digit” property in the Unicode Standard.
