title: iOS Animate Rotation at an Angle
body: <p>I'm trying to do a 360 spin of a view but at a 45 degree tilt.</p>
  
  <p>Like this</p>
  
  <p><img src="https://i.stack.imgur.com/oFKJ3.jpg" alt="enter image description here"></p>
  
  <p>I can't figure out for to do it.</p>
  
  <p>So far I've managed this</p>
  
  <pre><code>CABasicAnimation* animation = [CABasicAnimation
                                 animationWithKeyPath:@"transform.rotation.y"];
  animation.fromValue = @(0);
  animation.toValue = @(2 * M_PI);
  animation.duration = 1;
  
  [self.layer addAnimation:animation forKey:@"rotation"];
  </code></pre>
  
  <p>Which spins it on it's y axis, but what I want is for this Y axis to be tilted 45 degree before it's spun.</p>