---
title: discoveredAccessories
framework: homekit
role: symbol
role_heading: Instance Property
path: homekit/hmaccessorybrowser/discoveredaccessories
---

# discoveredAccessories

An array of accessories discovered during a search.

## Declaration

```swift
var discoveredAccessories: [HMAccessory] { get }
```

## Discussion

Discussion When you start a new search by calling the startSearchingForNewAccessories() method, HomeKit clears the discoveredAccessories array. It then modifies the array as it discovers new accessories until you end the search by calling the stopSearchingForNewAccessories() method.

## See Also

### Discovering accessories

- [startSearchingForNewAccessories()](homekit/hmaccessorybrowser/startsearchingfornewaccessories().md)
- [stopSearchingForNewAccessories()](homekit/hmaccessorybrowser/stopsearchingfornewaccessories().md)
