From 38ae9d206d93700f9f565fba5c752f8ac719fdf0 Mon Sep 17 00:00:00 2001 From: Mick MacCallum Date: Wed, 20 Nov 2024 09:37:13 -0500 Subject: [PATCH] remove marketing content views --- .../Widgets/Paywall/PaywallWidget.swift | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ios/Sources/Parra/Containers/Widgets/Paywall/PaywallWidget.swift b/ios/Sources/Parra/Containers/Widgets/Paywall/PaywallWidget.swift index b5047549..d5e7aebf 100644 --- a/ios/Sources/Parra/Containers/Widgets/Paywall/PaywallWidget.swift +++ b/ios/Sources/Parra/Containers/Widgets/Paywall/PaywallWidget.swift @@ -79,7 +79,8 @@ struct PaywallWidget: ParraContainer { .padding(.top, 34) } - @ViewBuilder private var subscriptionStoreView: some View { + @ViewBuilder + @MainActor private var subscriptionStoreView: some View { if ParraAppEnvironment.isDebugParraDevApp { // Hard-coded to match the group id in the Configuration.storekit file. SubscriptionStoreView(groupID: "4EEAFE70") { @@ -90,21 +91,15 @@ struct PaywallWidget: ParraContainer { case .groupId(let groupId): SubscriptionStoreView( groupID: groupId - ) { - marketingContent - } + ) case .productIds(let productIds): SubscriptionStoreView( productIDs: productIds - ) { - marketingContent - } + ) case .products(let products): SubscriptionStoreView( subscriptions: products - ) { - marketingContent - } + ) } } }