import SuperwallKit
import Encore
// Listen to Superwall's custom actions
class SWDelegate: SuperwallDelegate {
func handleCustomPaywallAction(withName name: String) {
// Action is EncoreTrigger
if name == "EncoreTrigger" {
Encore.placement()
.onGranted { entitlements in
Superwall.shared.dismiss()
}
.onNotGranted { reason in
Superwall.shared.dismiss()
}
.show()
}
}
}