1

I'm implementing the new iOS 14 image picker PHPickerViewController. By default the right bar button has the title "Add". I want to change this to "Stamp". I tried the code below but it did not work. Does anyone know how to change the right bar button title for PHPickerViewController?

...          
let picker = PHPickerViewController(configuration: pickerConfiguartion)
picker.navigationController?.navigationItem.rightBarButtonItem?.title = "Stamp"

enter image description here

chickenparm
  • 1,570
  • 1
  • 16
  • 36
  • That's not supported. Please file an enhancement request with Apple if you have a good use case! – matt Oct 01 '20 at 16:09
  • By the way, a navigation controller has no navigation item, so even if this were possible, your code would make no sense. – matt Oct 01 '20 at 16:10
  • 1
    @matt Good point about the navigation item. I'll open an enhancement request with Apple. – chickenparm Oct 01 '20 at 16:13
  • any luck with this? I have a chat app and love to change the add to send – alionthego Oct 25 '21 at 12:38
  • @alionthego I'm still using the default "Add" although I have not looked into this recently to see if they have added that functionality. – chickenparm Oct 25 '21 at 12:48
  • Can anyone tell me how Apple's `Messages` app using `PHPickerViewController` without navigation bar! [![IMG-ECC5-A1-E481-DB-1.jpg](https://i.postimg.cc/mDZ90GLW/IMG-ECC5-A1-E481-DB-1.jpg)](https://postimg.cc/R38qHyJg) – Ganpat Nov 29 '22 at 06:20

0 Answers0