Force dark mode on camera/picker for black safe area bars

- Set overrideUserInterfaceStyle = .dark on UIImagePickerController
- Changes white bars to black (much better looking)
- Camera controls and photo library also appear in dark mode
- Consistent dark appearance regardless of system settings
This commit is contained in:
jack
2025-10-18 14:12:51 +02:00
parent e427e1c62f
commit e992d96939
+3
View File
@@ -2154,6 +2154,9 @@ struct ImagePickerView: UIViewControllerRepresentable {
// Use standard full screen - iOS handles safe areas automatically
picker.modalPresentationStyle = .fullScreen
// Force dark mode to make safe area bars black instead of white
picker.overrideUserInterfaceStyle = .dark
return picker
}