Some questions about PHPickerViewController

  1. When I use PHPickerViewController, I found that the button text color of the navigationbar is very close to the background color, Is there any way to customize the color?

the image: tva1.sinaimg.cn/large/007S8ZIlly1ghvvpek50cj30u01szti4.jpg


2. When I use the official demo, I selected a gif from the album, but it show the type is jpg, so, how can I get the real gif from UIImage ?




Code Block
if itemProvider.canLoadObject(ofClass: UIImage.self) {
      itemProvider.loadObject(ofClass: UIImage.self) { [weak self] image, error in
        DispatchQueue.main.async {
          guard let self = self, self.currentItemProvider == itemProvider else { return }
          if let image = image as? UIImage {
            /**the gif can't play, and show the image type is jpg */
            self.display(image: image)
          } else {
            self.display(image: UIImage(systemName: "exclamationmark.circle"))
          }
        }
      }
    }


  1. You can update your app's tint color and it will be reflected in the picker.

  2. You can use loadFileRepresentation and pass in the Uniform Type Identifier you want.

Thank you for your reply, the second problem is solved.
But the first problem still exists, when I have set the tint color to red color and click on the Ablums tab, the textcolor of the button has changed to the default color instead of red color

But the first problem still exists, when I have set the tint color to red color and click on the Ablums tab, the textcolor of the button has changed to the default color instead of red color.

Thanks for reporting! This is a known issue and we are tracking it internally (66591842).

  1. You can update your app's tint color and it will be reflected in the picker.

Is there a way to change the bar button colors only for the current photo picker instance? Changing the global tint color will have an impact in other views.
Some questions about PHPickerViewController
 
 
Q