Rename

RenameButton in SwiftUI

You may want to include a button labeled “Rename” in your app. Apple now offers a pre-made button called “RenameButton.” You can easily achieve this by the following code: