This commit is contained in:
Trey t
2022-12-23 11:51:22 -06:00
parent 2c8772f79a
commit 87865571c1
4 changed files with 43 additions and 9 deletions

View File

@@ -28,11 +28,15 @@ struct PurchaseButtonView: View {
var body: some View {
ZStack {
switch iapManager.showIAP {
// if we should show the iap warning that means no purchase which means
// we should show buy options
switch iapManager.showIAPWarning {
case true:
buyOptionsView
.frame(height: CGFloat(height))
.background(theme.currentTheme.secondaryBGColor)
VStack {
buyOptionsView
.frame(height: CGFloat(height))
.background(theme.currentTheme.secondaryBGColor)
}
case false:
subscribedView
.frame(height: CGFloat(height))