title: CAShapeLayer class's method "layer" is not available in Swift
body: <p>In Objective C, below code works.</p>
  
  <pre><code>CAShapeLayer  *shapeLayer = [CAShapeLayer layer];
  </code></pre>
  
  <p>I'm trying to convert the same in swift. But, error throws says CAShapeLayer is does not have a member named "layer"</p>
  
  <pre><code>var shapeLayer:CAShapeLayer = CAShapeLayer().layer
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>CAShapeLayer().layer
  </code></pre>
  
  <p>Any alternative to get layer?</p>
  
  <p>Thanks</p>