Skip to content

Paywalls Tester: improve .paywallFooter presentation#3348

Merged
NachoSoto merged 1 commit into
mainfrom
paywalls-tester-footer-test-custom-paywall
Oct 30, 2023
Merged

Paywalls Tester: improve .paywallFooter presentation#3348
NachoSoto merged 1 commit into
mainfrom
paywalls-tester-footer-test-custom-paywall

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This uses CustomPaywallContent instead of the Text simple paywall:

Before:

Simulator Screenshot - iPhone 14 Pro Max - 2023-10-25 at 10 51 45

After:

simulator_screenshot_F8012E6F-ECAF-4EBE-A71F-70C610C6466C

I also fixed a bug where the context menu no longer worked since #3339, by unifying the state into a single property.

This uses `CustomPaywallContent` instead of the `Text` simple paywall:

I also fixed a bug where the context menu no longer worked since #3339, by unifying the state into a single property.
@NachoSoto NachoSoto added the test label Oct 25, 2023
@NachoSoto NachoSoto requested a review from a team October 25, 2023 17:54
@codecov

codecov Bot commented Oct 25, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9dc1371) 85.97% compared to head (fb6721d) 85.97%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3348      +/-   ##
==========================================
- Coverage   85.97%   85.97%   -0.01%     
==========================================
  Files         237      237              
  Lines       17086    17086              
==========================================
- Hits        14690    14689       -1     
- Misses       2396     2397       +1     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

var body: some View {
self.content
#if DEBUG
.scrollableIfNecessary(.vertical)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this here so using CustomPaywallContent just works.

@NachoSoto

Copy link
Copy Markdown
Contributor Author

Bump @RevenueCat/cashnip

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@NachoSoto NachoSoto merged commit c4566c0 into main Oct 30, 2023
@NachoSoto NachoSoto deleted the paywalls-tester-footer-test-custom-paywall branch October 30, 2023 17:28
NachoSoto added a commit that referenced this pull request Nov 2, 2023
**This is an automatic release.**

### New Features
* `Offering`: new `getMetadataValue` with `Decodable` type (#3373) via
NachoSoto (@NachoSoto)
* Add `StoreProduct.pricePerWeek` (#3354) via NachoSoto (@NachoSoto)
### RevenueCatUI
* `Paywalls`: `.presentPaywallIfNeeded` allows overriding `Offering`
(#3370) via NachoSoto (@NachoSoto)
* `Paywalls`: new optional `displayCloseButton` parameter (#3359) via
NachoSoto (@NachoSoto)
* `Paywalls`: improve period abbreviations in Japanese (#3367) via
NachoSoto (@NachoSoto)
* `Paywalls`: new `{{ sub_price_per_week }}` variable (#3355) via
NachoSoto (@NachoSoto)
* `Paywalls`: log warning when attempting to purchase already-subscribed
product (#3366) via NachoSoto (@NachoSoto)
* `Paywalls`: improve Japanese localization (#3364) via NachoSoto
(@NachoSoto)
* `Paywalls`: fix template 2 top padding inside navigation view (#3363)
via NachoSoto (@NachoSoto)
* `Paywalls`: avoid animating `PurchaseButton` labels when text does not
change (#3361) via NachoSoto (@NachoSoto)
* `Paywalls`: improve `FooterView` accessibility (#3349) via NachoSoto
(@NachoSoto)
### Dependency Updates
* Bump cocoapods from 1.14.0 to 1.14.2 (#3356) via dependabot[bot]
(@dependabot[bot])
* Bump cocoapods from 1.13.0 to 1.14.0 (#3351) via dependabot[bot]
(@dependabot[bot])
### Other Changes
* `Paywalls`: simplify `PurchaseButton` (#3362) via NachoSoto
(@NachoSoto)
* `Paywalls`: refactored `IntroEligibilityStateView` (#3360) via
NachoSoto (@NachoSoto)
* `Paywall Tester`: improve template 5 dark colors (#3358) via NachoSoto
(@NachoSoto)
* `Paywalls`: improve conversion from `Color`/`UIColor` to
`PaywallColor` (#3357) via NachoSoto (@NachoSoto)
* `Paywalls Tester`: improve `.paywallFooter` presentation (#3348) via
NachoSoto (@NachoSoto)
* `Paywalls`: move size configuration to `TemplateViewType` (#3352) via
NachoSoto (@NachoSoto)

---------

Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
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.

2 participants