
Scenekit
This is a comprehensive reference for building 3D scenes in iOS apps with SceneKit's node-based architecture, covering scene setup, geometry primitives, PBR materials, lighting with shadow configuration, camera control, three animation approaches (SCNAction, SCNTransaction, Core Animation), physics simulation, particle systems, and SwiftUI integration via SceneView. The skill includes concrete code samples for transforms, material properties, light types with category bitmasks, and model loading from USDZ and SCN files. Worth noting that Apple deprecated SceneKit at WWDC 2025 in favor of RealityKit, so this is most useful for maintaining existing codebases or prototyping quick 3D visualizations where migration complexity isn't justified. The examples use Swift 6.3 with SIMD types for performance-critical transform operations.
- skills.sh installs
- 3.2K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill scenekit --agent claude-codeInstalls into .claude/skills of the current project.
Files
SceneKit
Maintain existing SceneKit scenes only. Apple deprecated SceneKit at WWDC 2025 and limits it to maintenance; route new projects, major modernization, and USD/USDZ pipelines to RealityKit. Existing apps continue to work.
Contents
- Scene Setup
- Nodes and Geometry
- Materials
- Lighting
- Cameras
- Animation
- Physics
- Particle Systems
- Loading Models
- SwiftUI Integration
- Common Mistakes
- Review Checklist
- References
Scene Setup
SCNView in UIKit
import SceneKit
let sceneView = SCNView(frame: view.bounds)
sceneView.scene = SCNScene()
sceneView.allowsCameraControl = true
sceneView.autoenablesDefaultLighting = true
sceneView.backgroundColor = .black
view.addSubview(sceneView)
allowsCameraControl adds built-in orbit, pan, and zoom gestures. Typically
disabled in production where custom camera control is needed.
Creating an SCNScene
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Productivity & Planning, Mobile Development, Design & UI/UX, Game Development
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Homekit3.2K
- Accessorysetupkit3.2K
- Callkit3.2K
- Cryptotokenkit3.2K
- Financekit3.2K
- Adattributionkit3.2K
- Paperkit3.2K
- Passkit3.2K
- Audioaccessorykit3.2K
- Dockkit3.2K
- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
- Sensorkit3.2K
- Swift Security3.2K
- Tabletopkit3.1K
- App Store Optimization3.1K
- Swift Api Design Guidelines3K
- Swiftlint2.9K
- Swift Formatstyle2.8K
- Core Data2.8K
- Focus Engine2.8K
- Ios Security1.1K
- Live Activities465