Skip to content

Instantly share code, notes, and snippets.

@okwasniewski
Created February 26, 2025 12:00
Show Gist options
  • Save okwasniewski/67d24546ec361cbd0b5aa32730b37290 to your computer and use it in GitHub Desktop.
Save okwasniewski/67d24546ec361cbd0b5aa32730b37290 to your computer and use it in GitHub Desktop.
import SwiftUI
import StoreKit
class Props: ObservableObject {
@Published var productIDs: [String] = []
}
struct SwiftUIStoreView: View {
@ObservedObject var props: Props
var body: some View {
if #available(iOS 17.0, *) {
SubscriptionStoreView(productIDs: props.productIDs)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment