discoveredAccessories
An array of accessories discovered during a search.
Declaration
var discoveredAccessories: [HMAccessory] { get }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.