Skip to content

Document UIKit customPaywallTraits handling; fix stale API names#38

Open
salami wants to merge 1 commit into
mainfrom
docs/uikit-traits-and-delegate-naming
Open

Document UIKit customPaywallTraits handling; fix stale API names#38
salami wants to merge 1 commit into
mainfrom
docs/uikit-traits-and-delegate-naming

Conversation

@salami

@salami salami commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Docs updates alongside helium-swift #296 (trait-staleness follow-ups).

  • New collapsible section under iOS → Embedded View ("Keeping customPaywallTraits current when hosting in UIKit"): explains that customPaywallTraits are snapshotted at display and fixed for the presentation, that SwiftUI keeps them current automatically when they come from re-rendering state, and shows the ObservableObject + UIHostingController pattern for keeping them current before display. This is the target of the new SDK docstring link (#embedded-view).
  • Fix stale HeliumPaywallViewHeliumPaywall in the embedded example (the type is HeliumPaywall).
  • Fix stale HeliumPurchaseDelegateHeliumPaywallDelegate in the iOS quickstart — matches the actual protocol name in the SDK (HeliumPaywallDelegate).

🤖 Generated with Claude Code


Note

Low Risk
Markdown-only documentation changes with no runtime, security, or data impact.

Overview
Documentation-only updates for iOS paywall integration, aligned with helium-swift trait-staleness follow-ups.

Under iOS → Embedded View in the paywall presentation guide, a new accordion explains that customPaywallTraits are snapshotted at display and stay fixed for that presentation. It contrasts SwiftUI (traits from re-rendering state stay current) with UIKit + UIHostingController, and documents an ObservableObject / PaywallTraitsStore pattern so fresh traits reach HeliumPaywall via PaywallPresentationConfig before the paywall is shown — with a note that updates after display do not change an already-visible paywall.

Stale API names are corrected: HeliumPaywallViewHeliumPaywall in the embedded PaywallEventHandlers example, and HeliumPurchaseDelegateHeliumPaywallDelegate in the iOS quickstart custom purchase section.

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

- Add a collapsible section under Embedded View explaining how customPaywallTraits
  are snapshotted at display and how to keep them current when hosting HeliumPaywall
  in UIKit via UIHostingController (ObservableObject pattern).
- Fix stale HeliumPaywallView -> HeliumPaywall in the embedded example.
- Fix stale HeliumPurchaseDelegate -> HeliumPaywallDelegate in the iOS quickstart
  (matches the actual protocol name in the SDK).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@salami, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 164e4fd9-9f3d-4afd-af10-f88e34791be2

📥 Commits

Reviewing files that changed from the base of the PR and between a1a677f and 8a31adb.

📒 Files selected for processing (2)
  • guides/ways-to-show-paywall.mdx
  • sdk/quickstart-ios.mdx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/uikit-traits-and-delegate-naming

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mintlify

mintlify Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
helium 🟢 Ready View Preview Jul 10, 2026, 7:07 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

1 participant