From a27f29acf216020741b407ab78083313050ee461 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 18:24:11 -0700 Subject: [PATCH] Bottom Tab Bar Visibility Adjustment Nucleic-Session: 747527BF-AEE9-4939-BE70-A14F1F3BBBA8 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Views/Composer.swift | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Views/Composer.swift b/NucleicRemote/NucleicRemote/Views/Composer.swift index 7560555..9048097 100644 --- a/NucleicRemote/NucleicRemote/Views/Composer.swift +++ b/NucleicRemote/NucleicRemote/Views/Composer.swift @@ -190,10 +190,16 @@ struct NewChatAffordance: ViewModifier { .ignoresSafeArea() .transition(.opacity) // Tapping away drops the keyboard; with nothing typed there's nothing to - // keep the bar around for, so close it. A draft in progress stays open - // (keyboard down) so a stray tap doesn't discard it. + // keep the bar around for, so close it too. A draft in progress stays + // open (keyboard down) so a stray tap doesn't discard it — a second tap + // (keyboard already down) then closes it. .onTapGesture { - if isEmpty { isPresented = false } else { draftFocused = false } + if draftFocused { + draftFocused = false + if isEmpty { isPresented = false } + } else { + isPresented = false + } } StartChatComposer(draft: $draft, focus: $draftFocused, onStart: { isPresented = false }, lockedProject: project)