Skip to content

Fix: Enforce vertical bounds in RootView#6708

Merged
JZDesign merged 1 commit into
mainfrom
jzdesign/look-into-footer-issues-4-28-26
May 5, 2026
Merged

Fix: Enforce vertical bounds in RootView#6708
JZDesign merged 1 commit into
mainfrom
jzdesign/look-into-footer-issues-4-28-26

Conversation

@JZDesign

@JZDesign JZDesign commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • If applicable, unit tests
  • If applicable, create follow-up issues for purchases-android and hybrids

Motivation

PWENG-2

Zlayer stacks with headers and footers did not lay out consistently

Description

Add a transparent filler view to RootView so the ZStack expands vertically and headers/footers are positioned correctly. Introduces a private fillVerticalBounds property (Color.clear.frame(width: 1)) and inserts it into the ZStack before the StackComponentView to ensure consistent layout across stack dimensions.


Note

Low Risk
Low risk layout-only change: adds an invisible sizing view so the root ZStack reliably fills available height, which may subtly affect view sizing but does not touch data, networking, or auth.

Overview
Fixes inconsistent header/footer positioning in Paywalls V2 by forcing the RootView ZStack to expand to the full vertical bounds.

Adds a private fillVerticalBounds (a transparent Color.clear frame) and inserts it into the ZStack before the main StackComponentView so z-layer stacks lay out consistently across different stack dimensions.

Reviewed by Cursor Bugbot for commit 2f2f8c8. Bugbot is set up for automated code reviews on this repo. Configure here.

Add a transparent filler view to RootView so the ZStack expands vertically and headers/footers are positioned correctly. Introduces a private fillVerticalBounds property (Color.clear.frame(width: 1)) and inserts it into the ZStack before the StackComponentView to ensure consistent layout across stack dimensions.
@JZDesign JZDesign requested a review from a team as a code owner April 28, 2026 15:36
@JZDesign JZDesign merged commit 1f34923 into main May 5, 2026
17 of 20 checks passed
@JZDesign JZDesign deleted the jzdesign/look-into-footer-issues-4-28-26 branch May 5, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants