mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 11:05:19 +00:00
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:
@@ -2154,6 +2154,9 @@ struct ImagePickerView: UIViewControllerRepresentable {
|
|||||||
// Use standard full screen - iOS handles safe areas automatically
|
// Use standard full screen - iOS handles safe areas automatically
|
||||||
picker.modalPresentationStyle = .fullScreen
|
picker.modalPresentationStyle = .fullScreen
|
||||||
|
|
||||||
|
// Force dark mode to make safe area bars black instead of white
|
||||||
|
picker.overrideUserInterfaceStyle = .dark
|
||||||
|
|
||||||
return picker
|
return picker
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user