From 7316a4a46db733e5a95584f345a67dc9a1ceda79 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 18 Oct 2025 14:23:04 +0200 Subject: [PATCH] Optimize sheet presentation for camera UI - Force .large detent for maximum height - Hide drag indicator for cleaner look - Use ignoresSafeArea to give camera full space - Should show complete flash button and controls --- bitchat/Views/ContentView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitchat/Views/ContentView.swift b/bitchat/Views/ContentView.swift index af11a884..417f81dd 100644 --- a/bitchat/Views/ContentView.swift +++ b/bitchat/Views/ContentView.swift @@ -205,7 +205,7 @@ struct ContentView: View { } } #if os(iOS) - .fullScreenCover(isPresented: $showImagePicker) { + .sheet(isPresented: $showImagePicker) { ImagePickerView(sourceType: imagePickerSourceType) { image in showImagePicker = false if let image = image { @@ -221,6 +221,9 @@ struct ContentView: View { } } } + .presentationDetents([.large]) + .presentationDragIndicator(.hidden) + .ignoresSafeArea() } #endif .sheet(isPresented: Binding(