---
title: "init(controlPoint1:controlPoint2:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uicubictimingparameters/init(controlpoint1:controlpoint2:)"
---

# init(controlPoint1:controlPoint2:)

Initializes the object with the specified control points for a cubic Bézier curve.

## Declaration

```swift
init(controlPoint1 point1: CGPoint, controlPoint2 point2: CGPoint)
```

## Parameters

- `point1`: The first control point for the cubic Bézier timing curve. The x and y values of this point must be in the range 0.0 to 1.0.
- `point2`: The second control point for the cubic Bézier timing curve. The x and y values of this point must be in the range 0.0 to 1.0.

## Return Value

Return Value An initialized timing parameter object or nil if the object could not be created.

## Discussion

Discussion Use this method to initialize the timing curve with a custom cubic Bézier curve. The curve consists of a line whose starting point is (0, 0), whose end point is (1, 1), and whose shape is defined by point1 and point2.

## See Also

### Initializing a cubic timing parameters object

- [init()](uikit/uicubictimingparameters/init().md)
- [init(animationCurve:)](uikit/uicubictimingparameters/init(animationcurve:).md)
- [init(coder:)](uikit/uicubictimingparameters/init(coder:).md)
