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

# isEmpty

A Boolean value that indicates whether the set is empty.

## Declaration

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

## See Also

### Inspecting a Set

- [count](swift/set/count.md)
- [capacity](swift/set/capacity.md)
