How CGAffineTransform actually works — Swift engineer’s guide
summary
Explains how CGAffineTransform works in UIKit for Swift engineers, detailing how scale, rotation and other transform initializers map to the matrix components a, b, c, d, tx, ty. Uses basic linear algebra (only arithmetic) to show why combined transforms can behave unexpectedly and how to interpret and predict transform results.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:04What is CGAffineTransform
- 4:57Affine as matrix ops
- 7:34Matrix multiplication
- 10:113x3 matrices for affine
- 12:08Order matters
- 15:27Reverse order quirk
- 17:43Fixing reverse order with concat
- 18:26Summary
related talks
05mCATransform3D: You don't need to know them
18mSwift as Light
35mAnimations with SwiftUI
34mFunctional Geometry in Swift & SwiftUI
32mThe Art & Science of SwiftUI Animated Experiences
35mBehind the Scenes with Auto Layout - How to Solve Constraints with the Cassowary Algorithm
18mScientific Swift
21mOptimizing Swift code for separation of concerns and simplicity
