Skip to content

Paywall Tester: fixed paywall presentation#3339

Merged
NachoSoto merged 1 commit into
mainfrom
paywalls-tester-paywall-reload
Oct 24, 2023
Merged

Paywall Tester: fixed paywall presentation#3339
NachoSoto merged 1 commit into
mainfrom
paywalls-tester-paywall-reload

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

Having the .sheet deep inside a List + Section + if was making SwiftUI re-evaluate it over and over.
This cleans up PaywallPresenter and moves it to the top level of the view to avoid that.

Having the `.sheet` deep inside a `List` + `Section` + `if` was making `SwiftUI` re-evaluate it over and over.
This cleans up `PaywallPresenter` and moves it to the top level of the view to avoid that.
@NachoSoto NachoSoto added the test label Oct 24, 2023
@NachoSoto NachoSoto requested a review from a team October 24, 2023 19:41

@joshdholtz joshdholtz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 💪

@NachoSoto NachoSoto enabled auto-merge (squash) October 24, 2023 20:53
@NachoSoto NachoSoto merged commit 50bd457 into main Oct 24, 2023
@NachoSoto NachoSoto deleted the paywalls-tester-paywall-reload branch October 24, 2023 21:21
NachoSoto added a commit that referenced this pull request Oct 24, 2023
NachoSoto added a commit that referenced this pull request Oct 25, 2023
NachoSoto added a commit that referenced this pull request Oct 25, 2023
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 added a commit that referenced this pull request Oct 25, 2023
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 added a commit that referenced this pull request Oct 26, 2023
**This is an automatic release.**

### New Features
* `PaywallColor`: change visibility of `Color.init(light:dark:)` to
`private` (#3345) via NachoSoto (@NachoSoto)
### RevenueCatUI
* `Paywalls`: new `.onPurchaseCompleted` overload with
`StoreTransaction` (#3323) via NachoSoto (@NachoSoto)
* `Paywalls`: finished template 5 (#3340) via NachoSoto (@NachoSoto)
* `Paywalls`: new `onDismiss` parameter for `presentPaywallIfNeeded`
(#3342) via NachoSoto (@NachoSoto)
* `Paywalls`: disable shimmering on footer loading view (#3324) via
NachoSoto (@NachoSoto)
### Bugfixes
* `ErrorUtils.purchasesError(withSKError:)`: handle `URLError`s (#3346)
via NachoSoto (@NachoSoto)
### Other Changes
* `Paywalls`: add identifier to events (#3332) via Josh Holtz
(@joshdholtz)
* `Paywalls`: create new event session when paywall appears (#3330) via
Josh Holtz (@joshdholtz)
* `HTTPClient`: verbose logs for request IDs (#3320) via NachoSoto
(@NachoSoto)
* `Paywalls Tester`: fix `macOS` build (#3341) via NachoSoto
(@NachoSoto)
* `ProductFetcherSK1`: enable `TimingUtil` log (#3327) via NachoSoto
(@NachoSoto)
* `Paywall Tester`: fixed paywall presentation (#3339) via NachoSoto
(@NachoSoto)
* `CI`: replace Carthage build jobs with `xcodebuild` (#3338) via
NachoSoto (@NachoSoto)
* `Integration Tests`: use repetition count from test plan (#3329) via
NachoSoto (@NachoSoto)
* `Integration Tests`: new logs for troubleshooting flaky tests (#3328)
via NachoSoto (@NachoSoto)
* `CircleCI`: change iOS 17 job to use M1 Large resource (#3322) via
NachoSoto (@NachoSoto)
* `Paywalls Tester`: fix release build (#3321) via NachoSoto
(@NachoSoto)
* `Paywalls`: enable all iOS 17 tests (#3331) via NachoSoto (@NachoSoto)
* `CI`: added workaround for Snapshots in `Xcode Cloud` (#2857) via
NachoSoto (@NachoSoto)
* `StoreKit 1`: disabled `finishTransactions` log on observer mode
(#3314) via NachoSoto (@NachoSoto)

---------

Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
NachoSoto added a commit that referenced this pull request Oct 30, 2023
This uses `CustomPaywallContent` instead of the `Text` simple paywall:

### Before:
![Simulator Screenshot - iPhone 14 Pro Max - 2023-10-25 at 10 51
45](https://github.com/RevenueCat/purchases-ios/assets/685609/97b6366e-3f9b-465f-803b-9b5f1ffd8c40)

### After:

![simulator_screenshot_F8012E6F-ECAF-4EBE-A71F-70C610C6466C](https://github.com/RevenueCat/purchases-ios/assets/685609/dc3000de-4ae7-45b1-8425-946f02b6daee)

I also fixed a bug where the context menu no longer worked since #3339,
by unifying the state into a single property.
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