StoreKitHelper/README.md
2025-03-06 22:34:49 +08:00

638 B

struct ContentView: View {
    @EnvironmentObject public var store: StoreContext
    var body: some View {
        StoreKitHelperView() {
            store.isShowingPurchasePopup.toggle()
        }
        .frame(maxWidth: 320)
        .pricingContent {
            AnyView(PricingContent())
        }
        .termsOfService(label: "Terms of Service") {
            MyAppList.openURL(string: "https://wangchujiang.com/videoer/terms-of-service.html")
        }
        .privacyPolicy(label: "Privacy Policy") {
            MyAppList.openURL(string: "https://wangchujiang.com/videoer/privacy-policy.html")
        }
    }
}