---
title: isEmpty
framework: swift
role: symbol
role_heading: Instance Property
path: swift/string/isempty
---

# isEmpty

A Boolean value indicating whether a string has no characters.

## Declaration

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

## See Also

### Inspecting a String

- [count](swift/string/count.md)
