title: Rotate a SKShapeNode with texture
body: <p>I'm trying to rotate an <code>SKShapeNode</code> with a texture, but it's not working. Basically, I have a circle with a texture and I'm trying to make it rotate using the same way I have done with an <code>SKSpriteNode</code>:                 </p>
  
  <pre><code>let spin = SKAction.rotateByAngle(CGFloat(M_PI/4.0), duration: 1)
  </code></pre>
  
  <p>The problem is that the circle is rotating, but not the texture. I can check this by using this code:</p>
  
  <pre><code>let wait = SKAction.waitForDuration(0.5)
  let block = SKAction.runBlock({
                       print(self.circle.zRotation)  
                       })
  let sequence = SKAction.sequence([wait, block])
  self.runAction(SKAction.repeatActionForever(sequence))
  </code></pre>
  
  <p>This is the code I have for creating the <code>SKShapeNode</code>:</p>
  
  <pre><code>let tex:SKTexture = SKTexture(image: image)
  let circle = SKShapeNode(circleOfRadius: 100 )
  circle.position = CGPoint(x: self.frame.width / 2, y: self.frame.height / 2 + 200)
  circle.strokeColor = SKColor.clearColor()
  circle.glowWidth = 1.0
  circle.fillColor = SKColor.whiteColor()
  circle.fillTexture = tex
  self.addChild(circle)
  // Runing the action
  circle.runAction(spin)
  </code></pre>
  
  <p>Please help. Thanks in advance!</p>
  
  <p>PS: I know that using an <code>SKSpriteNode</code> would be better but my goal is to place a square image in a circular frame and I figured that using an <code>SKShapeNode</code> would be perfect. If anyone know how to create a circular <code>SKSpriteNode</code>, feel free to post it in the answers section! :)</p>
  
  <p>This is what I'm trying to achieve (with the capability of rotating it):
  <a href="https://i.stack.imgur.com/EDFkI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EDFkI.jpg" alt="enter image description here"></a></p>