---
title: renameWithSimilarName
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/renamewithsimilarname
---

# renameWithSimilarName

An attempt to rename an object with its current name.

## Declaration

```swift
static var renameWithSimilarName: HMError.Code { get }
```

## See Also

### Detecting collision errors

- [homeWithSimilarNameExists](homekit/hmerror/homewithsimilarnameexists.md)
- [objectWithSimilarNameExists](homekit/hmerror/objectwithsimilarnameexists.md)
- [objectWithSimilarNameExistsInHome](homekit/hmerror/objectwithsimilarnameexistsinhome.md)
