I'm trying to create a rewarded video ad in my sprite kit game. I want to add the rewarded video in my GameScene.swift class but the problem is that this isn't a ViewController
but a SKScene
.
This doesn't work because my GameScene.swift isn't a ViewController
:
ad.present(fromRootViewController: self)
I've tried many things but nothing worked. Can someone help me please? Thanks!
(I want to display this rewarded ad when the player dies.)