From bfbc14ce3cb5f2315bb9d82e462aea626195cf1a Mon Sep 17 00:00:00 2001 From: Ben Davis Date: Thu, 2 Jul 2026 03:03:23 -0700 Subject: [PATCH] fix(mobile): restore header blur and reliable swipe-back on iOS beta Recent iOS betas stopped drawing the implicit blur behind transparent navigation bars, leaving white header text over raw scrolling content. Set headerBlurEffect: systemChromeMaterial explicitly on the three transparent headers (home, thread detail, thread index layout). Swipe-back was also unreliable on thread detail: the drawer-open pan gesture's hit slop covered the entire left edge, stealing touches from the native interactive-pop gesture below the header. Confine that pan to the top strip where it can actually complete, and enable fullScreenGestureEnabled on the thread, review, and files screens so back-swipe works from anywhere on the screen. Co-Authored-By: Claude Fable 5 --- apps/mobile/src/app/_layout.tsx | 4 ++++ .../src/app/threads/[environmentId]/[threadId]/_layout.tsx | 6 ++++++ apps/mobile/src/features/home/HomeHeader.tsx | 3 +++ apps/mobile/src/features/threads/ThreadDetailScreen.tsx | 6 +++++- apps/mobile/src/features/threads/ThreadRouteScreen.tsx | 3 +++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/app/_layout.tsx b/apps/mobile/src/app/_layout.tsx index 968be6c14a..045489e389 100644 --- a/apps/mobile/src/app/_layout.tsx +++ b/apps/mobile/src/app/_layout.tsx @@ -99,6 +99,9 @@ function AppNavigatorContent() { contentStyle: { backgroundColor: "transparent" }, headerShown: true, headerTransparent: true, + // Recent iOS betas no longer draw an implicit blur behind + // transparent navigation bars, so request one explicitly. + headerBlurEffect: "systemChromeMaterial", headerShadowVisible: false, }} /> @@ -115,6 +118,7 @@ function AppNavigatorContent() { animation: "slide_from_right", contentStyle: { backgroundColor: "transparent" }, gestureEnabled: true, + fullScreenGestureEnabled: true, headerShown: false, }} /> diff --git a/apps/mobile/src/app/threads/[environmentId]/[threadId]/_layout.tsx b/apps/mobile/src/app/threads/[environmentId]/[threadId]/_layout.tsx index 92e90920e2..1e36909c32 100644 --- a/apps/mobile/src/app/threads/[environmentId]/[threadId]/_layout.tsx +++ b/apps/mobile/src/app/threads/[environmentId]/[threadId]/_layout.tsx @@ -16,6 +16,9 @@ export default function ThreadLayout() { contentStyle: { backgroundColor: "transparent" }, headerShown: true, headerTransparent: true, + // Recent iOS betas no longer draw an implicit blur behind + // transparent navigation bars, so request one explicitly. + headerBlurEffect: "systemChromeMaterial", headerShadowVisible: false, headerTitle: "", }} @@ -47,6 +50,7 @@ export default function ThreadLayout() { options={{ animation: "slide_from_right", contentStyle: sheetStyle, + fullScreenGestureEnabled: true, headerBackButtonDisplayMode: "minimal", headerShown: true, headerTitle: "Files changed", @@ -60,6 +64,7 @@ export default function ThreadLayout() { options={{ animation: "slide_from_right", contentStyle: sheetStyle, + fullScreenGestureEnabled: true, headerBackButtonDisplayMode: "minimal", headerShown: true, headerTitle: "Files", @@ -73,6 +78,7 @@ export default function ThreadLayout() { options={{ animation: "slide_from_right", contentStyle: sheetStyle, + fullScreenGestureEnabled: true, headerBackButtonDisplayMode: "minimal", headerShown: true, headerTitle: "File", diff --git a/apps/mobile/src/features/home/HomeHeader.tsx b/apps/mobile/src/features/home/HomeHeader.tsx index 9757d5fbf9..0fab91c237 100644 --- a/apps/mobile/src/features/home/HomeHeader.tsx +++ b/apps/mobile/src/features/home/HomeHeader.tsx @@ -88,6 +88,9 @@ export function HomeHeader(props: { headerShown: true, headerTransparent: true, headerStyle: { backgroundColor: "transparent" }, + // Recent iOS betas no longer draw an implicit blur behind + // transparent navigation bars, so request one explicitly. + headerBlurEffect: "systemChromeMaterial", headerShadowVisible: false, headerTintColor: iconColor, headerTitle: "", diff --git a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx index 62d1bce115..397ca28177 100644 --- a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx +++ b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx @@ -253,7 +253,11 @@ export const ThreadDetailScreen = memo(function ThreadDetailScreen(props: Thread () => Gesture.Pan() .enabled(!isSplitLayout) - .hitSlop({ left: 0, width: 40 }) + // Confine the drawer pan to the top-left corner where it completes + // (see the `event.y` check below). Covering the full left edge stole + // the touch from the native swipe-back gesture, leaving back + // navigation dead below the header. + .hitSlop({ left: 0, width: 40, top: 0, height: drawerGestureThreshold }) .activeOffsetX([10, 999]) .failOffsetY([-24, 24]) .onEnd((event) => { diff --git a/apps/mobile/src/features/threads/ThreadRouteScreen.tsx b/apps/mobile/src/features/threads/ThreadRouteScreen.tsx index f8c916974e..390fa9bef3 100644 --- a/apps/mobile/src/features/threads/ThreadRouteScreen.tsx +++ b/apps/mobile/src/features/threads/ThreadRouteScreen.tsx @@ -326,6 +326,9 @@ export function ThreadRouteScreen() { headerShown: true, headerTransparent: true, headerStyle: { backgroundColor: "transparent" }, + // Recent iOS betas no longer draw an implicit blur behind + // transparent navigation bars, so request one explicitly. + headerBlurEffect: "systemChromeMaterial", headerShadowVisible: false, headerTintColor: iconColor, headerBackTitle: "",