Skip to content

fix: extend LynxView under safe area for full-screen background#26

Open
Huxpro wants to merge 1 commit intomainfrom
fix/ios-ignore-safe-area
Open

fix: extend LynxView under safe area for full-screen background#26
Huxpro wants to merge 1 commit intomainfrom
fix/ios-ignore-safe-area

Conversation

@Huxpro
Copy link
Collaborator

@Huxpro Huxpro commented Mar 22, 2026

Summary

  • Add .ignoresSafeArea() to DemoVC in the app template

Problem

The GeometryReader in DemoVC respects the safe area by default, so the LynxView stops at the notch and home indicator boundaries. This leaves white gaps at the top and bottom of the screen, breaking full-screen backgrounds (e.g. gradient fills).

Before After
White gaps at notch and home indicator Background extends edge-to-edge

Fix

One-line change: .ignoresSafeArea() on the GeometryReader.

Lynx apps that need safe area awareness can still use lynx.__globalProps to read insets and add padding in their layout — this change just ensures the native container doesn't clip the rendering area.

Test plan

  • pnpm run:ios — background gradient covers the full screen including notch and home indicator areas
  • Content is still scrollable and interactive
  • Second page navigation still works

DemoVC's GeometryReader respects the safe area by default, leaving
white gaps at the notch and home indicator regions. Add
.ignoresSafeArea() so the Lynx content can render edge-to-edge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant