I'm trying to add a SpriteKit scene to my view using SpriteView(scene: spriteScene).
But it's doesn't work the .sks scene doesn't display
here is the image.
(and this is the code :)
import SwiftUI
import _SpriteKit_SwiftUI
struct Gameplay: View {
let spriteScene: MainGameScene
var body: some View {
ZStack {
-----------------------
SpriteView(scene: spriteScene)
----------------------------
}
}
}