---
title: "init(_:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/keyframetrack/init(_:content:)"
---

# init(_:content:)

Creates an instance that animates the property of the root value at the given key path.

## Declaration

```swift
init(_ keyPath: WritableKeyPath<Root, Value>, @KeyframeTrackContentBuilder<Value> content: () -> Content)
```

## Parameters

- `keyPath`: The property to animate.

## See Also

### Creating a keyframe track

- [init(content:)](swiftui/keyframetrack/init(content:).md)
