3

I am currently using the PHPickerViewController from apple. Works great but whenever I switch to the album segment the cancel button changes colour to white, making it barely visible. When I switch back to all it stays white. Like so:

View pops up

Switching to albums changes color

code to initialise the picker:

        var config = PHPickerConfiguration(photoLibrary: .shared())
        config.selectionLimit = 50
        config.filter = .images
        let vc = PHPickerViewController(configuration: config)
        vc.delegate = self

        present(vc, animated: true, completion: nil)

Any idea?

10
  • Don’t you set any UIAppearance parameters? Commented Feb 10, 2023 at 12:24
  • Moreover please provide your code which initializes and shows the picker Commented Feb 10, 2023 at 12:25
  • @BulatYakupov I added the code. I don't change appearance on the picker, its fine if you open it but when you switch to albums it just changes the cancel buttons color. Commented Feb 10, 2023 at 13:18
  • I mean global UIAppearance parameter. For example for UILabel. Commented Feb 10, 2023 at 13:24
  • 1
    @matt will do that asap, seems the best way to test. Commented Feb 10, 2023 at 13:44

1 Answer 1

0

I encountered the same issue, and it turns out I set the UINavigationBar tintColor to UIColor.white.

UINavigationBar.appearance().tintColor = UIColor.white

Check if you implemented the same code and try removing it to solve the issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.