Posts

Post not yet marked as solved
4 Replies
986 Views
Ciao, I would like to use SpriteKit within SwiftUI on WatchOS 7. Which works fabulously on iOS 14 via SpriteView(scene: scene) But when I use the same code from iOS 14: import SwiftUI import SpriteKit class GameScene: SKScene { override func didMove(to view: SKView) { physicsBody = SKPhysicsBody(edgeLoopFrom: frame)     } } SKView throws an error. And now I'm not sure how to use SpiteKit within SwiftUI on watchOS 7. Before with WatchKit. I used WKInterfaceSKScene... via Storyboard. I would love to get some some suggestions what I've been missing. Grazie Vasco
Posted Last updated
.