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 <[email protected]>
This commit is contained in:
1 parent
7b9eef7ac2
commit
bfbc14ce3c
5 files changed
+21
-1
No files matched your search
@@ -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,
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
Reference in new issue
Block a user