mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix photo and document picker tint colors on dark mode.
This commit is contained in:
@@ -40,7 +40,9 @@ struct DocumentPicker: UIViewControllerRepresentable {
|
|||||||
return documentPicker
|
return documentPicker
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: Context) { }
|
func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: Context) {
|
||||||
|
uiViewController.view.tintColor = .compound.textActionAccent
|
||||||
|
}
|
||||||
|
|
||||||
func makeCoordinator() -> Coordinator {
|
func makeCoordinator() -> Coordinator {
|
||||||
Coordinator(self)
|
Coordinator(self)
|
||||||
|
|||||||
@@ -48,7 +48,9 @@ struct PhotoLibraryPicker: UIViewControllerRepresentable {
|
|||||||
return pickerViewController
|
return pickerViewController
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateUIViewController(_ uiViewController: PHPickerViewController, context: Context) { }
|
func updateUIViewController(_ uiViewController: PHPickerViewController, context: Context) {
|
||||||
|
uiViewController.view.tintColor = .compound.textActionAccent
|
||||||
|
}
|
||||||
|
|
||||||
func makeCoordinator() -> Coordinator {
|
func makeCoordinator() -> Coordinator {
|
||||||
Coordinator(self)
|
Coordinator(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user