I want the background color of the navigation bar of my DocumentPicker to be the same as the rest of my application.
let filePicker = UIDocumentPickerViewController(documentTypes: ["public.content"], in: .import) filePicker.delegate = self filePicker.navigationController?.navigationBar.barTintColor = self.theme.navigationBarColor self.present(filePicker, animated: true, completion: nil)
does not work.
Other things I've tried:
Use UINavigationBar.appearance().backgroundColor = self.theme.navigationBarColor - does not work and is too similar to a workaround, and not to the correct path if it works.
Edit: Now our application has been redesigned to use the foreground color as the text color in the navigation bar and have the same background color as the DocumentPicker. Replies will still be appreciated.
ios swift
Aguragorn
source share