Skip to content

Better Insets for Non Navigation#834

Open
hactar wants to merge 1 commit intostadiamaps:mainfrom
hactar:ios/non-nav-safearea-insets
Open

Better Insets for Non Navigation#834
hactar wants to merge 1 commit intostadiamaps:mainfrom
hactar:ios/non-nav-safearea-insets

Conversation

@hactar
Copy link

@hactar hactar commented Mar 20, 2026

We use insets to "push down" the current location marker to the lower third during navigation, but thats not great while not navigating.

This PR addresses this by only using those insets when navigating, while passing in the parent safe area insets when not.

Before, notice how the dot is centered in the lower third even though we are not navigating.
Simulator Screenshot - iPhone 17 Pro - 2026-03-16 at 10 48 58

After it is now centered in the view.

Simulator Screenshot - iPhone 17 Pro - 2026-03-20 at 15 21 53

In non navigation states - it respects the safe areas provided by the parent - here a view is placed in the safe area at the bottom, and the puck is now centered in the visible area:
Simulator Screenshot - iPhone 17 Pro - 2026-03-20 at 15 59 19

@hactar
Copy link
Author

hactar commented Mar 20, 2026

@ianthetechie @Archdoog - not allowed to request reviews yet so requesting via comment 😅

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