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

# isEmpty

A Boolean value that indicates whether the set has no elements.

## Declaration

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