Game Development in SwiftUI
summary
Proposes building playable prototypes with SwiftUI using Canvas + TimelineView for per-frame rendering, fixes slowdown by converting views to pre-rendered symbols, and makes three one-day games (a Vampire Survivors parody, a Doom-style shooter with an infinite scroll-aim, and a rhythm game) that all run and feel good. Uses a seeded RNG for deterministic waves, AVAudioEngine with multiple player nodes for low-latency sound, a drag-gesture hack for immediate tap-down input, and TextRenderer for animated text; most techniques work on iOS 26.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:03Why I started mobile games
- 3:50SwiftUI for game dev
- 5:14SwiftUI perks for games
- 8:23SwiftUI previews speed
- 10:52No game engine?
- 12:18SwiftUI-suitable games
- 13:20Demo: Garlic Providers
- 15:47Optimize with Canvas symbols
- 16:51Demo: SwiftUI runs Doom
- 18:38Infinite scroll for aiming
- 20:47Random number generation
- 21:50Seeded RNG for gameplay
- 23:15Demo: Simeon Says
- 24:45Taps in rhythm games
- 26:30Inline arrays for speed
- 27:33Low-latency sound with AV
- 31:29Text rendering in UI
- 33:56Summary
related talks
40mBuilding delightful applications
33mMake it Rain: Building particle systems in SwiftUI
39mSwiftUI Meets Metal - Elevate Your UI Game
36mCrafting Cross-Platform Adventures: Building a Game Engin…
18mZero to Music Hero: Building Cross-Platform Games in Months With React Native & Skia
40mWriting 2D games for the OSX platform in Ruby
33mSkFun: SpriteKit And RubyMotion
44mGames Development with Typescript and Canvas
