---
title: isGathering
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsmetadataquery/isgathering
---

# isGathering

A Boolean value that indicates whether the receiver is in the initial gathering phase of the query. (read-only)

## Declaration

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

## Discussion

Discussion This property contains true when the query is in the initial gathering phase; otherwise, false.

## See Also

### Running queries

- [isStarted](foundation/nsmetadataquery/isstarted.md)
- [start()](foundation/nsmetadataquery/start().md)
- [isStopped](foundation/nsmetadataquery/isstopped.md)
- [stop()](foundation/nsmetadataquery/stop().md)
