Instance Property

homes

An array of all homes managed by this home manager.

Declaration

@property(readonly, copy, nonatomic) NSArray<HMHome *> *homes;

Discussion

When you create a new home manager, its homes array is empty by default. You can only be sure that this array is properly initialized with data from the shared HomeKit database after the manager calls its delegate’s homeManagerDidUpdateHomes: method for the first time.

See Also

Working with the Home Layout

HMHome

The primary unit of living space, typically composed of rooms organized into zones.