Fix photo and document picker tint colors on dark mode.

This commit is contained in:
Stefan Ceriu
2025-08-19 17:11:18 +03:00
parent 9fab9f9c9a
commit fa7ae91058
2 changed files with 6 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)