Skip to content

Paywall sheet size on SwiftUI native macOS app doesn't adjust to content size #5827

@roman-sundurov

Description

@roman-sundurov

Describe the bug

When adding the Revenue Cat Paywall to a SwiftUI native macOS app, the sheet doesn't adjust to the paywall's size. It looks like this:

.sheet(isPresented: $showPaywall) {
    PaywallView()
}
Image

Currently, the only way to solve this problem is to manually add a frame size, but it is impossible to accurately match the content size, and when the content changes, empty space or scroll bars will appear.

Platform

macOS

SDK version

5.48.0

SDK integration method

Swift Package Manager

StoreKit version

StoreKit 2 (default on versions >=5.0.0)

OS version

macOS 26.1

Xcode version

26.1.1

Device and/or simulator

Device

Environment

Sandbox

How widespread is the issue

100%

Debug logs

DEBUG: ℹ️ PostFeatureEventsOperation: Started
DEBUG: ℹ️ There are no requests currently running, starting request POST /v1/events
DEBUG: ℹ️ API request started: POST '/v1/events'
DEBUG: ℹ️ API request completed: POST '/v1/events' (200)
DEBUG: ℹ️ PostFeatureEventsOperation: Finished
DEBUG: ℹ️ Events flush succeeded
DEBUG: ℹ️ Serial request done: POST /v1/events, 0 requests left in the queue
DEBUG: ℹ️ applicationWillEnterForeground
WARN: Could not find default package for paywall. Using first package instead. This package will not show in the paywall. This could be caused by a package that doesn't have a product on this platform or the product might not be available for this region.

Steps to reproduce

  1. Add RevenueCat Paywall
    .sheet(isPresented: $showPaywall) {
    PaywallView()
    }
  2. Show Paywall using $showPaywall

Other information

Additional context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions