What is SpriteKit?
SpriteKit is Apple's framework for 2D games and lively 2D graphics. It draws shapes, text, images and particle effects on a flat stage, moves them with ready-made actions, and makes them collide and bounce with a built-in physics engine. It works alongside GameplayKit, Apple's framework for game logic such as random numbers and opponents' moves.
More about SpriteKit
A SpriteKit game is a scene full of nodes: the player, the walls and the coins, each with a position, and some with a physics body that gravity pulls and other bodies hit. The scene updates every frame, so the game decides what happens next many times a second. Apple builds it on Metal for speed, and in SwiftUI a single SpriteView shows the scene among the app's other screens, with its menus and score table in ordinary SwiftUI around it.
An example
Picture an asteroid dodger. A small ship sits at the bottom of the screen, rocks fall from random spots that GameplayKit picks, and the ship slides left and right as you drag a finger. When a rock touches the ship, the physics engine reports the contact, the ship bursts into a cloud of particles and the round ends with your score. Each rock is a circle drawn in code, so the game needs no picture files at all.
A common misunderstanding
SpriteKit isn't only for games. Apple describes it as a general-purpose framework for 2D drawing, and apps use it for animated backgrounds, small simulations and a burst of confetti when a goal is reached. Nor is it the same as SwiftUI's own animation: SwiftUI animates the app's views, while SpriteKit runs a stage of its own where many objects move and collide at once.
In a Borel app
A 2D game is one of the apps you can build and play through in the preview. SpriteKit runs in the iOS Simulator, so the game appears in the iPhone in your browser, where taps and drags work and you can ask for faster rocks or a bigger ship and play again once it is rebuilt. Tilt controls and sound are the exceptions, felt and heard on a real iPhone. A game that grows can add levels, a high-score table and, once it is on the App Store, a paid unlock.
SpriteKit with Borel
Ask for a 2D game in your own words, and Borel builds it in Swift with SpriteKit and GameplayKit inside SwiftUI, with every shape, colour and sound made in code. Borel Companion puts it on your iPhone on Pro, and Borel's publish flow sends it to the App Store on the Pro plan.
Sources: Apple Developer: SpriteKit; Apple Developer: SpriteView; Apple Developer: GameplayKit. Checked .
Related terms
Make your iPhone app in Borel
Describe it in your own words. Borel writes it in Swift, builds it on its own Mac and puts it on your iPhone.