I want to set the navigation bar background color of my DocumentPicker to be the same as the rest of my application.
This will change the color of the text like "Cancel".
UIBarButtonItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.blue], for: .normal)
and this will change the arrow back color.
UIButton.appearance().tintColor = UIColor.blue
Don't forget to set it back to your original colors after closing the picker if it required.