SubscriptionStoreView policy sheet too large

I am using the SubscriptionStoreView in my app including links to the privacy policy and terms of service.

However, when clicking the links the displayed sheet is too wide, effectively cutting of the sides (including the done button). This prevents closing the sheet.

Am I doing something wrong here, or is this a bug?

Minimal example code:

import SwiftUI
import StoreKit

struct SwiftUIView: View {
    var body: some View {
        SubscriptionStoreView(groupID: EntitlementManager.subscriptionGroupID)
        .subscriptionStorePolicyDestination(url: AppConfig.privacyPolicyURL, for: .privacyPolicy)
        .subscriptionStorePolicyDestination(url: AppConfig.termsOfServiceURL, for: .termsOfService)
    }
}

#Preview {
    SwiftUIView()
}

Screenshot:

I have exactly the same problem and had to remove the .subscriptionStorePolicyDestination‘s

I thought these are a requiment to get through App Store review

I'm trying to get an app through review at the moment and had it declined because they said I hadn't linked to the terms and policy etc. Even though I used a VStack to show the links on the StoreView and they looked identical to the ones in subscriptionStorePolicyDestination. A solution or fix to this would be great

I managed to fix this by wrapping the SubscriptionStoreView in a GeometryReader the displaying the links in a WebView using geometry.size.width

.subscriptionStorePolicyDestination(for: .privacyPolicy, destination: {
                WebView(url: URL(string: "https://yourURL.com/policy.html")!)
                    .frame(maxWidth: geometry.size.width)
                    .padding(.bottom, -50)
            })

the padding removes a blank bit at the bottom of the view

import WebKit
import SwiftUI

struct WebView: UIViewRepresentable {
    var url: URL
    
    func makeUIView(context: Context) -> WKWebView {
        let wKWebView = WKWebView(frame: .zero)
        return wKWebView
    }
    
    func updateUIView(_ webView: WKWebView, context: Context) {
        let request = URLRequest(url: url)
        webView.load(request)
    }
}
SubscriptionStoreView policy sheet too large
 
 
Q