Skip to content

Commit

Permalink
Paywalls: fix template 1 header overflow (#3678)
Browse files Browse the repository at this point in the history
This was mainly visible if pushing `PaywallView` inside a navigation
controller instead of a `.sheet` or `.fullScreenCover`.

### Before:
![Simulator Screenshot - iPhone 15 Pro Max - 2024-02-13 at 10 04
26](https://github.com/RevenueCat/purchases-ios/assets/685609/e1280153-0a50-478f-84ae-a976835357d5)

### After:
![Simulator Screenshot - iPhone 15 Pro Max - 2024-02-13 at 10 04
10](https://github.com/RevenueCat/purchases-ios/assets/685609/30b6403d-b14c-4783-ace1-9fbc4206171c)
  • Loading branch information
NachoSoto committed Feb 13, 2024
1 parent d2b1c45 commit e3a29e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RevenueCatUI/Templates/Template1View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ struct Template1View: TemplateViewType {
@ViewBuilder
private var headerImage: some View {
self.asyncImage
.clipped()
.modifier(CircleMaskModifier(landscape: self.shouldUseLandscapeLayout))

Spacer()
Expand Down
2 changes: 1 addition & 1 deletion Tests/purchases-ios-snapshots-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
864026c203c8204209cc784824459259f8e562fb
0f38dc63b7e78bca5363190b6f9880294a5b572c

0 comments on commit e3a29e9

Please sign in to comment.