7

I have a problem with the new PHPicker on iOS 14. When my app request for photo library authorization, the system will prompt the user with three options, and if the user selects "select photos", the system will present a PHPicker in which the user can choose photos and videos that my app can access.

But now the navigation bar of the system PHPicker looks so awful that it has a black background and black text color (see the links below). I'm wondering how can customize its appearance.

Any replies are very much appreciated!

PHPicker

Mani
  • 71
  • 1
  • Did you find a solution to this? Having the same issue, the modal presentation of the Pickers do not take on the Navigation Appearance of the app. – Joshua Hart Nov 20 '20 at 20:19

1 Answers1

-1

I found adjusting the global color for the Global navigation just before presentation helps. Then switch it back on return. Its hacky and annoying but it works.

UINavigationBar.appearance().tintColor = UIColor.white
UINavigationBar.appearance().barTintColor = UIColor(red: 36/255, green: 88/255, blue: 128/255, alpha: 1.0)

etc.

JMD
  • 1,540
  • 2
  • 24
  • 56