Using SpriteKit in a SwiftUI Project

This reference article covers how to use a SpriteKit scene in a SwiftUI view.

Using SpriteKit in a SwiftUI Project

Even though the default Game Xcode Template creates the project based on a UIKit application, you can create a SwiftUI app and put your SpriteKit game inside it without any hustle thanks to the SpriteView view!

Apple Developer Documentation
The documentation page for the SpriteView SwiftUI view.

In the following steps, let’s take a look at how you can set up a SwiftUI project as the baseline for our SpriteKit game.

Become a free member or log in to proceed.