diff --git a/docs/tools/paywalls-v2/creating-paywalls/variables.mdx b/docs/tools/paywalls-v2/creating-paywalls/variables.mdx index 824c1b796..b6f763b84 100644 --- a/docs/tools/paywalls-v2/creating-paywalls/variables.mdx +++ b/docs/tools/paywalls-v2/creating-paywalls/variables.mdx @@ -57,3 +57,9 @@ The paywall preview is generated using our example values for each package liste To see a more accurate preview, we recommend running your application on your physical device or in the simulator, as this will present details based on the actual information for the products you're displaying on that device. ::: + +## FAQs + +| Question | Answer | +| ------------------ | ------------------| +| How is the `product.relative_discount` variable calculated? | `relative_discount` returns the localized discount percentage of a given package compared to the most expensive package per period that's offered on your paywall. For example, if you're displaying a monthly package that is $10/month, and a yearly package that is $80/year (or $6.67/month), the relative discount for the annual package is 67%. Because of this, we recommend only using this variable within packages that are NOT the most expensive package per period, as the most expensive package will have a null value returned, since its relative discount is null. | \ No newline at end of file diff --git a/docs/tools/paywalls-v2/displaying-paywalls.mdx b/docs/tools/paywalls-v2/displaying-paywalls.mdx index 227d2c700..3792712b4 100644 --- a/docs/tools/paywalls-v2/displaying-paywalls.mdx +++ b/docs/tools/paywalls-v2/displaying-paywalls.mdx @@ -12,7 +12,7 @@ These docs refer to our beta of Paywalls v2. For our original Paywalls, [click h ### iOS -RevenueCat Paywalls v2 will show paywalls fullscreen, and there are multiple ways to do this with SwiftUI and UIKit. +RevenueCat Paywalls v2 will show paywalls fullscreen on iPhone, and there are multiple ways to do this with SwiftUI and UIKit. - Depending on an entitlement with `presentPaywallIfNeeded` - Custom logic with `presentPaywallIfNeeded` @@ -53,6 +53,11 @@ import objc5 from "!!raw-loader!@site/code_blocks/tools/paywalls_5.m"; ]}/> +#### Paywalls on iPad +When using `presentPaywallIfNeeded` to display a paywall on iPad, we'll automatically show a paywall in a modal that is roughly iPhone sized. If instead you prefer to show a paywall that is full screen on iPad, you can use the `PaywallView` or `PaywallViewController` methods instead. + +![Paywalls on iPad](/images/paywalls-on-ipad.jpeg) + ### Android RevenueCat Paywalls will, by default, show paywalls fullscreen and there are multiple ways to do this with `Activity`s and Jetpack Compose. diff --git a/static/images/paywalls-on-ipad.jpeg b/static/images/paywalls-on-ipad.jpeg new file mode 100644 index 000000000..bfd5951db Binary files /dev/null and b/static/images/paywalls-on-ipad.jpeg differ