Fix photo and document picker tint colors on dark mode.
This commit is contained in:
@@ -40,7 +40,9 @@ struct DocumentPicker: UIViewControllerRepresentable {
|
||||
return documentPicker
|
||||
}
|
||||
|
||||
func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: Context) { }
|
||||
func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: Context) {
|
||||
uiViewController.view.tintColor = .compound.textActionAccent
|
||||
}
|
||||
|
||||
func makeCoordinator() -> Coordinator {
|
||||
Coordinator(self)
|
||||
|
||||
@@ -48,7 +48,9 @@ struct PhotoLibraryPicker: UIViewControllerRepresentable {
|
||||
return pickerViewController
|
||||
}
|
||||
|
||||
func updateUIViewController(_ uiViewController: PHPickerViewController, context: Context) { }
|
||||
func updateUIViewController(_ uiViewController: PHPickerViewController, context: Context) {
|
||||
uiViewController.view.tintColor = .compound.textActionAccent
|
||||
}
|
||||
|
||||
func makeCoordinator() -> Coordinator {
|
||||
Coordinator(self)
|
||||
|
||||
Reference in New Issue
Block a user