Skip to content

Commit

Permalink
API tester
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Feb 6, 2024
1 parent 2026d28 commit 9da78de
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct App: View {
var checkPresentPaywallIfNeeded: some View {
Text("")
.presentPaywallIfNeeded(requiredEntitlementIdentifier: "")
.presentPaywallIfNeeded(requiredEntitlementIdentifier: "", presentationMode: .sheet)
.presentPaywallIfNeeded(requiredEntitlementIdentifier: "", onDismiss: self.paywallDismissed)
.presentPaywallIfNeeded(requiredEntitlementIdentifier: "", offering: nil)
.presentPaywallIfNeeded(requiredEntitlementIdentifier: "", offering: self.offering)
Expand Down Expand Up @@ -82,6 +83,9 @@ struct App: View {
} purchaseCompleted: {
self.purchaseOrRestoreCompleted($0)
}
.presentPaywallIfNeeded(presentationMode: .sheet) { (_: CustomerInfo) in
false
}
.presentPaywallIfNeeded(fonts: self.fonts) { (_: CustomerInfo) in
false
} purchaseCompleted: {
Expand Down Expand Up @@ -200,6 +204,13 @@ struct App: View {
let _: PaywallFontProvider = CustomPaywallFontProvider(fontName: "Papyrus")
}

private func presentationMode(_ mode: PaywallPresentationMode) {
switch mode {
case .sheet: break
case .fullScreen: break
}
}

}

private struct CustomFontProvider: PaywallFontProvider {
Expand Down

0 comments on commit 9da78de

Please sign in to comment.