SwiftUI: Rotation 3D Effect

Mark Moeykens
Oct 8, 2019
The rotation 3D effect is very powerful and can get complicated quickly. This week I'm going to show you how to get started and hopefully be able to visualize a 3D rotation and implement it.

Take a look at the video.

What the...?

One thing I thought was funny about 3D rotations is that you can see the text view on the OTHER SIDE of the yellow view! I wasn't expecting this.

If you look at how I construct this view, it's a yellow rounded rectangle with a text view overlayed on top.

This means there are two layers, text on top of the rectangle.

So why when I rotate it all the way around should I see the text?

Not sure but this effect is good to keep in mind!

(This content is only in the full book)

Free SwiftUI Picture Book



Screenshots for every code example? Yes! Get your FREE SwiftUI picture book here.