---
title: isASCII
framework: swift
role: symbol
role_heading: Instance Property
path: swift/unicode/scalar/isascii
---

# isASCII

A Boolean value indicating whether the Unicode scalar is an ASCII character.

## Declaration

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

## Discussion

Discussion ASCII characters have a scalar value between 0 and 127, inclusive. For example: let canyon = "Cañón" for scalar in canyon.unicodeScalars {     print(scalar, scalar.isASCII, scalar.value) } // Prints "C true 67" // Prints "a true 97" // Prints "ñ false 241" // Prints "ó false 243" // Prints "n true 110"

## See Also

### Inspecting a Scalar

- [value](swift/unicode/scalar/value.md)
- [properties](swift/unicode/scalar/properties-swift.property.md)
- [Unicode.Scalar.Properties](swift/unicode/scalar/properties-swift.struct.md)
- [hash(into:)](swift/unicode/scalar/hash(into:).md)
