navigationItemShouldBeginRenaming(_:)
Asks the delegate whether the navigation item supports renaming.
Declaration
@MainActor @preconcurrency func navigationItemShouldBeginRenaming(_: UINavigationItem) -> BoolReturn Value
true to support renaming and show Rename in the title menu; otherwise, false.
Discussion
UIKit calls this method when the navigation bar’s title menu becomes visible to validate whether to show Rename as part of that menu. Implement this method to determine whether to display the Rename menu element and support the rename process.