---
title: "isASCII(_:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/unicode/ascii/isascii(_:)"
---

# isASCII(_:)

Returns whether the given code unit represents an ASCII scalar

## Declaration

```swift
static func isASCII(_ x: Unicode.ASCII.CodeUnit) -> Bool
```
