You have seen examples of rotating around one axis and then two axes. Now let's add a third axis!
The Z-axis is the depth axis. It either comes at you (forward) or goes away from you (backward). When you use this axis you get all kinds of interesting results with your rotations that can surprise and delight users...and developers. 😃
In the example above we are using a positive value for the Z-axis:
Just to let you know, all this is actually in the SwiftUI Views book. 😃 It's WAY toward the end, in the "Effect Modifiers" chapter > "Rotation 3D Effect" section.
Chris Parker
Oct 15, 2019
Oh Right.
Hey it's 2:30am. has your wife been asking when you are going to bed. hahahahaha.