<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINavigationItem/renameDelegate-8jiuf",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So16UINavigationItemC5UIKitE14renameDelegateAC0ab6RenameE0_pSgvp"
  },
  "title" : "renameDelegate"
}
-->

# renameDelegate

The delegate for renaming the navigation item.

```
@MainActor @preconcurrency weak var renameDelegate: (any UINavigationItemRenameDelegate)? { get set }
```

## Discussion

If you assign a non-`nil` value to this property, UIKit shows an inline text field UI for changing the navigation item’s title. This UI appears when either you or the system calls [`rename(_:)`](/documentation/UIKit/UIResponderStandardEditActions/rename(_:)) on the navigation controller, which occurs when a person taps Rename in the title menu or when you call [`rename(_:)`](/documentation/UIKit/UIResponderStandardEditActions/rename(_:)) explicitly.

To show Rename in the navigation item’s title menu, include the Rename menu element in the menu you return from [`titleMenuProvider`](/documentation/UIKit/UINavigationItem/titleMenuProvider). UIKit includes Rename in the set of menu element suggestions it passes in to this closure.

If you only want to show Rename in the title menu, assign a [`renameDelegate`](/documentation/UIKit/UINavigationItem/renameDelegate-8jiuf) without setting a [`titleMenuProvider`](/documentation/UIKit/UINavigationItem/titleMenuProvider). In this case, UIKit automatically generates a title menu containing the Rename menu element only.

If you set this property to `nil` while a rename operation is in progress, the operation cancels immediately.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)