mirror of
https://github.com/jaywcjlove/StoreKitHelper
synced 2026-04-21 21:47:36 +00:00
22 lines
638 B
Markdown
22 lines
638 B
Markdown
|
|
|
|
```swift
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
```
|