Change navigation bar back button title

Is there any way to change this without using a toolbar item, and instead changing it something like this:
Code Block Swift
.onAppear {
UINavigationBar().backItem?.title = "Title"
// also tried this
UINavigationController().navigationBar.backItem?.title = "Title"
}

which I can’t seem to get working yet.
Answered by BabyJ in 642699022
I have a workaround for this, by setting a custom navigation titleView to the preferred title and setting the normal navigationTitle to the preferred back button title.
Accepted Answer
I have a workaround for this, by setting a custom navigation titleView to the preferred title and setting the normal navigationTitle to the preferred back button title.
Change navigation bar back button title
 
 
Q