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 8c38c11146
commit beb11fd7fd
2 changed files with 6 additions and 2 deletions
@@ -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)