RenameButton()

Hi!

I tried the new rename button, but I don't see how is this supposed to work in a document app; I can't find a way to access the file to get the binding. There is next to no documentation on anything, I don't understand why SwiftUI gets almost zero attention from Apple.

Also, the toolbar has a double back button for some reason. Even with just the template.

I'm also facing this issue and can't find the relevant documentation to make this work. The code for RenameButton() https://developer.apple.com/forums/tags/wwdc2022-110343 does not seem to be working out of the box, even when combined with the .renameAction { } as showed in https://developer.apple.com/documentation/swiftui/renamebutton

Any working examples would be very appreciated!

RenameButton()
 
 
Q