---
title: isEmpty
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibezierpath/isempty
---

# isEmpty

A Boolean value that indicates whether the path has any valid elements.

## Declaration

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

## Discussion

Discussion Valid path elements include commands to move to a specified point, draw a line or curve segment, or close the path. Thus, a path is not considered empty even if all you do is call the move(to:) method.

## See Also

### Performing hit-testing

- [contains(_:)](uikit/uibezierpath/contains(_:).md)
- [bounds](uikit/uibezierpath/bounds.md)
