ICYMI: Enums Are...
summary
Builds PocketPerc: Beat Generator using SwiftUI and AVFoundation, showing concrete enum patterns that replace structs/classes for app state and UI. Demonstrates PocketPerc: Beat Generator with toggled samples mixed live, uses enum rawRepresentable, indirect associated values for a surprise fill, CaseIterable stepping helpers to move state forward/back, a generic PlaybackState bridging AVAudioPlayer and audio node frame positions, and even enums conforming to View as view namespaces. Code and app are on GitHub and the live mix works.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 3:35Why Enums
- 7:08Basics
- 10:49Representing State
- 12:00Representing Collection
- 21:31Conformance to View
- 24:36Mix








