Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paywall Tester: improve template 5 dark colors #3358

Merged
merged 5 commits into from
Oct 30, 2023

Conversation

NachoSoto
Copy link
Contributor

Screenshot 2023-10-27 at 10 39 05

This wasn't fully required, but now we'll correctly encode `stringRepresentation`.
Also adds an overload for `UIColor` which allows us to use color literals in Xcode.
@NachoSoto NachoSoto added the test label Oct 27, 2023
@NachoSoto NachoSoto requested a review from a team October 27, 2023 17:39
@NachoSoto NachoSoto force-pushed the paywalls-tester-template-5-colors-2 branch from b79bcbe to 26976ca Compare October 27, 2023 20:28
@NachoSoto NachoSoto force-pushed the paywalls-tester-template-5-colors-2 branch from 26976ca to 27d673e Compare October 27, 2023 21:08
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Just one comment, but I don't think it's a blocker.

callToActionForeground: #colorLiteral(red: 0.5315951397, green: 1, blue: 0.4162791786, alpha: 1).asPaywallColor,
accent1: #colorLiteral(red: 0.5568627715, green: 0.3529411852, blue: 0.9686274529, alpha: 1).asPaywallColor,
accent2: #colorLiteral(red: 0.8078431487, green: 0.02745098062, blue: 0.3333333433, alpha: 1).asPaywallColor,
accent3: #colorLiteral(red: 0.9098039269, green: 0.4784313738, blue: 0.6431372762, alpha: 1).asPaywallColor
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm I know this is only for test data but should we try to use the same style as the light mode colors? Seems weird to declare the colors differently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, but it's a fair amount of work to update all definitions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW this is what it looks like on Xcode:
Screenshot 2023-10-30 at 09 08 14

@NachoSoto NachoSoto force-pushed the paywalls-tester-template-5-colors-2 branch from 27d673e to 5ad5a88 Compare October 30, 2023 16:07
@NachoSoto NachoSoto force-pushed the paywalls-tester-template-5-colors branch from c6bc117 to 4da2cd8 Compare October 30, 2023 17:55
@NachoSoto NachoSoto force-pushed the paywalls-tester-template-5-colors-2 branch from 5ad5a88 to 0231593 Compare October 30, 2023 19:13
Base automatically changed from paywalls-tester-template-5-colors to main October 30, 2023 22:14
@NachoSoto NachoSoto merged commit 9f73b98 into main Oct 30, 2023
@NachoSoto NachoSoto deleted the paywalls-tester-template-5-colors-2 branch October 30, 2023 22:15
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 <[email protected]>
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