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

# endPoint

The end point of the gradient when drawn in the layer’s coordinate space. Animatable.

## Declaration

```swift
var endPoint: CGPoint { get set }
```

## Discussion

Discussion The end point corresponds to the last stop of the gradient. The point is defined in the unit coordinate space and is then mapped to the layer’s bounds rectangle when drawn. Default value is (0.5,1.0).

## See Also

### Gradient Style Properties

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