Skip to content

Commit

Permalink
remove marketing content views
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmaccallum committed Nov 20, 2024
1 parent 8073705 commit 38ae9d2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions ios/Sources/Parra/Containers/Widgets/Paywall/PaywallWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand All @@ -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
}
)
}
}
}
Expand Down

0 comments on commit 38ae9d2

Please sign in to comment.