Post

Replies

Boosts

Views

Activity

Reply to SubscriptionStoreView policy sheet too large
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) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to SubscriptionStoreView policy sheet too large
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to SubscriptionStoreView policy sheet too large
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) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to SubscriptionStoreView policy sheet too large
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24