SwiftUI: Learn Rotation 3D Effect with Anchors! ⚓️
Mark Moeykens
Oct 11, 2019
Earlier, you learned how to create a vector or line in which your rotation will revolve around. By default, this vector goes through the center of your view. (Note: If you are new to Big Mountain Climber's Camp and want to see the previous blog posts, you can catch up here.)
How can you move this anchor to another part of your view?
When you set the axis parameter for your rotation3DEffect modifier, there is another parameter called anchor that you can set.