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

# isWhitespace

A Boolean value indicating whether the scalar is a whitespace character.

## Declaration

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

## Discussion

Discussion This property is true for scalars that are spaces, separator characters, and other control characters that should be treated as whitespace for the purposes of parsing text elements. This property corresponds to the “White_Space” property in the Unicode Standard.
