Adam Bell :catPOWER: on Nostr: 3D transforms in SwiftUI are still so messy. There's scaleEffect and ...
3D transforms in SwiftUI are still so messy.
There's scaleEffect and rotation3DEffect, which practically break down a transformation matrix… but then they have weird limitations (like the projection parameter doesn't seem to map to m34 1:1).
Then there's projectionEffect which is supposed to just take a raw CATransform3D and apply it, which kinda works, but it ignores things like translations on the Z axis.
There's scaleEffect and rotation3DEffect, which practically break down a transformation matrix… but then they have weird limitations (like the projection parameter doesn't seem to map to m34 1:1).
Then there's projectionEffect which is supposed to just take a raw CATransform3D and apply it, which kinda works, but it ignores things like translations on the Z axis.