Adam Rush


6 June, 2022

This article was written using Xcode 14 and iOS 16


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 {
            .renameAction {
                print("Rename Logic")

In your example, you can override the action to do anything you like :]


Subscribe for curated Swift content for free

- weekly delivered.