<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICubicTimingParameters/init(controlPoint1:controlPoint2:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICubicTimingParameters(im)initWithControlPoint1:controlPoint2:"
  },
  "title" : "init(controlPoint1:controlPoint2:)"
}
-->

# init(controlPoint1:controlPoint2:)

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

```
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

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

## 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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)