Skip to content

Paywall not displaying right on an iPad & landscape iPhone Pro Max #3465

Description

@QuentinRth

Describe the bug
UIKit iOS/iPad OS app.
When presenting a PaywallViewController either on an iPad (both landscape and portrait) or on an iPhone Pro Max in landscape mode, it will enable some Split-view behaviour resulting in an invisible or partial paywall view.
It happens only when you put this parameter: displayCloseButton: true

let controller = PaywallViewController(offering: offering, displayCloseButton: true)
controller.delegate = self
self.present(controller, animated: true)
  1. Environment
    1. Platform: iPhone 15 Pro Max & iPad Pro 11 inch
    2. SDK version: 4.30.5
    3. StoreKit version:
      • StoreKit 1
      • StoreKit 2 (enabled with usesStoreKit2IfAvailable(true))
    4. OS version: iOS 17.1.1 & iPad OS 17.0.1
    5. Xcode version: 15.0.1
    6. Device and/or simulator:
      • Device
      • Simulator
    7. Environment:
      • Sandbox
      • TestFight
      • Production
    8. How widespread is the issue. Percentage of devices affected. 100% of Pro Max / iPad
  2. Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.
Nothing is happening in the logs, no constraints break or anything
  1. Steps to reproduce, with a description of expected vs. actual behavior

I haven't tried on a SwiftUI project but with a UIKit project with different orientations enabled.
On a regular UIViewController, running on an iPad Pro or a iPhone 15 Pro Max in landscape mode, simply do this and it should reproduce the issue.
self.present(PaywallViewController(displayCloseButton: true), animated: true)

  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Here is a screenshot : https://share.cleanshot.com/nrtSmgPJ

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions