In Objective C, below code works.

```
CAShapeLayer  *shapeLayer = [CAShapeLayer layer];

```

I'm trying to convert the same in swift. But, error throws says CAShapeLayer is does not have a member named "layer"

```
var shapeLayer:CAShapeLayer = CAShapeLayer().layer

```

Or

```
CAShapeLayer().layer

```

Any alternative to get layer?

Thanks