So, I Spoke at SwiftLeeds 2023
Thanks to Adam and the incredible team of people behind SwiftLeeds, I was able to both attend and present (!) at my first industry conference this past October! …
3D transforms on iOS under the hood part II: Perspective shifts
In the previous write-up , I mentioned briefly that changes in POV were handled by a specific entry in the transformation matrix, m34. I noted how the derivation was a whole separate thing in and of itself, so here’s the overview of how we are able to understand why this entry affects perspective!
How do 3D transforms of iOS views work under the hood?
When it comes to transforming a view, one can think of it as applying a calculation to each individual point of the view’s layer, such that for every (x, y, z), we obtain a new (x', y', z'). That calculation is actually a multiplication of the coordinates (x, y, z) by a matrix (good ol' linear algebra). How we construct our matrix is through the use of various types of CATransform3Ds, which we’ll now dive into.