This article was written using Xcode 14 and iOS 16
Introduction
It’s possible you might want to display a button for “Renaming” something within your application. Apple now provides an out of the box button called “RenameButton”.
struct ContentView: View {
var body: some View {
RenameButton()
.renameAction {
print("Rename Logic")
}
}
}
In your example, you can override the action to do anything you like :]