Oddbean new post about | logout
 Why does ProjectionTransform in SwiftUI ignore all the 3D bits :(

All the fun 3D stuff seems to be coming with visionOS only, which is odd… the closest analogue to applying CATransform3D transforms to SwiftUI views is getting real creative with `rotation3DEffect` and scaleEffect 
 @81345d63 I think it does kinda work but you need to set the m34 variable IIRC? I'm using it for the widgets configuration UI-like wobble effect in Peak 
 It seems to throwaway Z translations anyways…

You can get crafty and do something like this (stacked alongside another ProjectionTransform) to get a depth effect I guess:

.rotation3DEffect(.zero, axis: (x: 0.0, y: 0.0, z: 0.0),
                                   anchorZ: something,
                                   perspective: whatever) 
 @81345d63 you can really get creative with rotation3DEffect and scaling 😅 https://mastodon.social/@sandropennisi/111031115560183691