This is your reference when building 2D games with SpriteKit on iOS. It covers the full stack: scene lifecycle and node hierarchy, SKAction sequences for animation, physics bodies with collision masks and contact detection, particle effects, camera control, and touch handling. The guide includes the frame cycle order (update, actions, physics, constraints), explains when to use different scale modes, and shows how to wire up SwiftUI integration with SpriteView. It's comprehensive without being exhaustive, hitting the practical patterns like texture animation, force versus impulse, and bit mask collision filtering. If you're moving from UIKit animations to a real game loop or need to remember how SKPhysicsContactDelegate works, this gets you there quickly.

skills.sh installs
3.3K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill spritekit --agent claude-code

Installs into .claude/skills of the current project.

Files

SpriteKit

Build 2D games and interactive animations for iOS 26+ using SpriteKit and Swift 6.3. Covers scene lifecycle, node hierarchy, actions, physics, particles, camera, touch handling, and SwiftUI integration.

Contents

Scene Setup

SpriteKit renders content through SKView, which presents an SKScene -- the root node of a tree that the framework animates and renders each frame.

Creating a Scene

Subclass SKScene and override lifecycle methods. The coordinate system origin is at the bottom-left by default.

import SpriteKit

final class GameScene: SKScene {
    override func didMove(to view: SKView) {
        backgroundColor = .darkGray
        physicsWorld.contactDelegate = self
        physicsBody = SKPhysicsBody(edgeLoopFrom: frame)
        setupNodes()
    }

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
DevOps & CI/CD, Mobile Development, Game Development
First seen
May 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1wondelai avatarlean-analyticswondelai/skillsChoose and audit startup metrics using Croll and Yoskovitz's "Lean Analytics". Use when the user mentions "what metrics should we track", "KPIs", "north star me3.3Kskills.sh installs
2longbridge avatarlongbridge-intellongbridge/skillsMarket intelligence: strategy screener, popularity rankings, top movers with news correlation, quote anomalies, index/ETF constituent stocks, morning briefings,3.3Kskills.sh installs
3gogf avatargoframe-v2gogf/skillsGoFrame v2 development skill. Use only when the target Go project uses or is explicitly adopting GoFrame v2: the nearest go.mod requires github.com/gogf/gf/v2, 3.3Kskills.sh installs
4tradermonty avatarskill-integration-testertradermonty/claude-trading-skillsValidate multi-skill workflows defined in CLAUDE.md by checking skill existence, inter-skill data contracts (JSON schema compatibility), file naming conventions3.3Kskills.sh installs
5tradermonty avatarskill-idea-minertradermonty/claude-trading-skillsMine Claude Code session logs for skill idea candidates. Use when running the weekly skill generation pipeline to extract, score, and backlog new skill ideas fr3.3Kskills.sh installs
6affaan-m avatarpubmed-databaseaffaan-m/eccDirect PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitori3.3Kskills.sh installs