title: How does rotation3dEffect in SwiftUI work?
body: <p>How do x, y and z arguments define an axis in the <code>rotation3DEffect</code> ?</p>
  
  <p>Since the <a href="https://developer.apple.com/documentation/swiftui/scrollview/3287538-rotation3deffect" rel="nofollow noreferrer">documentation</a> doesn't explain anything, I've found <a href="https://www.hackingwithswift.com/quick-start/swiftui/how-to-rotate-a-view-in-3d" rel="nofollow noreferrer">this</a> on Hacking With Swift by Paul Hudson.</p>
  
  <p>It says</p>
  
  <blockquote>
    <p>If you’ve never done 3D rotation before you should think about the X/Y/Z axes as being skewers through your views. The X axis goes horizontally, so if you rotate on the X axis it’s like putting a horizontal skewer through your view – any rotation makes the top or bottom nearer or further, but won’t adjust the leading and trailing edges.</p>
  </blockquote>
  
  <p>Okay but now my doubt is, in :</p>
  
  <pre><code>Text("EPISODE LLVM")
      .font(.largeTitle)
      .foregroundColor(.yellow)
      .rotation3DEffect(.degrees(45), axis: (x: 1, y: 0, z: 0))
  </code></pre>
  
  <p><strong>How does the value of x, y and z matter if we are going to anyways turn it an angle of 45 degrees with respect to those axes</strong></p>
  
  <p>Won't it make more logical sense to have something like this ?</p>
  
  <pre><code>.rotation3DEffect(.degrees(45), axis: (x: true, y: false, z: false))
  </code></pre>