Hi and thanks for replying, they are indeed functioning links however I think I’ve found the issue.
I found this subscriptionStorePolicyDestination(url:for:) which I’m not using. I’m only using regular links.
I think I need to do this:
VStack(spacing: 10) {
Button("Terms of Use") {
if let url = subscriptionsManager.subscriptionPolicyURL(for: .termsOfService) {
openURL(url)
}
}
.font(.system(size: 14, weight: .regular))
Button("Privacy Policy") {
if let url = subscriptionsManager.subscriptionPolicyURL(for: .privacyPolicy) {
openURL(url)
}
}
.font(.system(size: 14, weight: .regular))
}
SubscriptionsManager
extension SubscriptionsManager {
func subscriptionPolicyURL(for policyType: Product.SubscriptionInfo.PolicyType) -> URL? {
guard let product = products.first else { return nil }
return try? Product.SubscriptionInfo.subscriptionStorePolicyDestination(url: URL(string: "https://myapp.com")!, for: policyType)
}
}
Post
Replies
Boosts
Views
Activity
You can add: .safeAreaPadding(.bottom, 80) or whichever edges you need to adjust