---
title: name
framework: homekit
role: symbol
role_heading: Instance Property
path: homekit/hmaccessory/name
---

# name

The name of the accessory.

## Declaration

```swift
var name: String { get }
```

## Discussion

Discussion Use the updateName(_:completionHandler:) method to change the name to a value chosen by the user.

## See Also

### Identifying an Accessory

- [updateName(_:completionHandler:)](homekit/hmaccessory/updatename(_:completionhandler:).md)
- [uniqueIdentifier](homekit/hmaccessory/uniqueidentifier.md)
- [identifier](homekit/hmaccessory/identifier.md)
