---
title: type
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cagradientlayer/type
---

# type

Style of gradient drawn by the layer.

## Declaration

```swift
var type: CAGradientLayerType { get set }
```

## Discussion

Discussion Defaults to axial.

## See Also

### Gradient Style Properties

- [colors](quartzcore/cagradientlayer/colors.md)
- [locations](quartzcore/cagradientlayer/locations.md)
- [endPoint](quartzcore/cagradientlayer/endpoint.md)
- [startPoint](quartzcore/cagradientlayer/startpoint.md)
