David Henry
David Henry

Reputation: 3054

UIImagePickerController Navigation Bar Tint Color not working with iOS 13

I am presenting a modal controller which is a UIImagePickerController.

I am trying to change the UIImagePickerController navigation bars' tint colour.

Prior to iOS13 this worked fine;

imagePickerController.navigationBar.tintColor = .red

I have also tried;

imagePickerController.navigationController?.navigationBar.tintColor = .red

but still no joy.

What can I try next?

Upvotes: 5

Views: 3963

Answers (2)

David Henry
David Henry

Reputation: 3054

This was resolved with rmaddy's solution in the comments.

in AppDelegate implement;

func configureGlobalUI() {
    UINavigationBar.appearance().tintColor = .red
}

then call in didFinishLaunchingWithOptions

This works as I require the tintColor on all navigationBar appearances.

Upvotes: 6

Bilal Drndo
Bilal Drndo

Reputation: 67

You can just make UIView the size of the Navigation Bar and put it under navigation bar and make navigation bars color alpha=0. I hope this helped. :)

Upvotes: -4

Related Questions