mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 02:25:20 +00:00
Fix camera white bars with overFullScreen presentation
- Changed modalPresentationStyle from .fullScreen to .overFullScreen - This should eliminate white bars at top/bottom on notched devices - Explicitly set showsCameraControls and cameraOverlayView for camera mode
This commit is contained in:
@@ -2151,7 +2151,14 @@ struct ImagePickerView: UIViewControllerRepresentable {
|
||||
picker.sourceType = sourceType
|
||||
picker.delegate = context.coordinator
|
||||
picker.allowsEditing = false
|
||||
picker.modalPresentationStyle = .fullScreen
|
||||
|
||||
// Configure for true full-screen presentation
|
||||
picker.modalPresentationStyle = .overFullScreen
|
||||
if sourceType == .camera {
|
||||
picker.showsCameraControls = true
|
||||
picker.cameraOverlayView = nil
|
||||
}
|
||||
|
||||
return picker
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user