Skip to content

Fix badge stack shadow not being rendered#6921

Merged
MonikaMateska merged 1 commit into
mainfrom
monika/fix/pweng-104-ios-badge-stack-shadow-is-not-rendered
Jun 5, 2026
Merged

Fix badge stack shadow not being rendered#6921
MonikaMateska merged 1 commit into
mainfrom
monika/fix/pweng-104-ios-badge-stack-shadow-is-not-rendered

Conversation

@MonikaMateska

@MonikaMateska MonikaMateska commented Jun 5, 2026

Copy link
Copy Markdown
Member

Checklist

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

Motivation

A drop shadow configured on a paywall badge (the badge's inner stack shadow) rendered on Android but was silently dropped on iOS, badge shadows have never rendered on iOS.

Root cause: BadgeModifier applied the badge stack's padding, background, border and shape, but never its shadow, in all four render paths (overlaid, nested, edge-to-edge corners, edge-to-edge top/bottom).

Resolves: PWENG-104

Testing

  • Verified on device against a paywall with a shadow on the selected-state override badge: previously missing on iOS, now matches Android.

Note

Low Risk
Scoped SwiftUI presentation fix in BadgeModifier with no auth, data, or purchase-flow changes.

Overview
Paywalls V2 badge stacks now render configured drop shadows on iOS, matching Android and other stack components.

BadgeModifier reads colorScheme, resolves the inner badge stack’s shadow into ShadowModifier.ShadowInfo, and passes it through overlaid, nested, edge-to-edge corner, and edge-to-edge top/bottom (EdgeToEdgeTopBottomModifier) paths via .shadow(shadow:shape:).

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

@MonikaMateska MonikaMateska requested a review from a team as a code owner June 5, 2026 12:35
@MonikaMateska MonikaMateska added the pr:fix A bug fix label Jun 5, 2026
@MonikaMateska MonikaMateska merged commit 772c08b into main Jun 5, 2026
42 of 43 checks passed
@MonikaMateska MonikaMateska deleted the monika/fix/pweng-104-ios-badge-stack-shadow-is-not-rendered branch June 5, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants