---
title: "init(_:duration:timingCurve:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/linearkeyframe/init(_:duration:timingcurve:)"
---

# init(_:duration:timingCurve:)

Creates a new keyframe using the given value and timestamp.

## Declaration

```swift
init(_ to: Value, duration: TimeInterval, timingCurve: UnitCurve = .linear)
```

## Parameters

- `to`: The value of the keyframe.
- `duration`: The duration of the segment defined by this keyframe.
- `timingCurve`: A unit curve that controls the speed of interpolation.
