---
title: isWhitespace
framework: swift
role: symbol
role_heading: Instance Property
path: swift/character/iswhitespace
---

# isWhitespace

A Boolean value indicating whether this character represents whitespace, including newlines.

## Declaration

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

## Discussion

Discussion For example, the following characters all represent whitespace: “\t” (U+0009 CHARACTER TABULATION) “ “ (U+0020 SPACE) U+2029 PARAGRAPH SEPARATOR U+3000 IDEOGRAPHIC SPACE

## See Also

### Inspecting a Character

- [isLetter](swift/character/isletter.md)
- [isPunctuation](swift/character/ispunctuation.md)
- [isNewline](swift/character/isnewline.md)
- [isSymbol](swift/character/issymbol.md)
- [isMathSymbol](swift/character/ismathsymbol.md)
- [isCurrencySymbol](swift/character/iscurrencysymbol.md)
