Hi I have a custom paywall in swiftUI with .paywallFooter() modifier.
every screen check if the user is premium by a task:
.task {
do {
let customerInfo = try await Purchases.shared.customerInfo()
isPremium = customerInfo.entitlementss"Premium"]?.isActive == true
} catch {
print(error.localizedDescription)
}
}
everything works fine, boughts, restore… but after you buy the paywall didn't disappear… if I change of tab and come back yes, paywallFooter is not there…
My footer paywall is implemented something like this:
VStack{
if isPremium{
} else {
// more Code
Rectangle()
// ... Code...
.paywallFooter()
}}
maybe it is not correct...
thanks!