iap work
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user