<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/KeyframeTrack",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13KeyframeTrackV"
  },
  "title" : "KeyframeTrack"
}
-->

# KeyframeTrack

A sequence of keyframes animating a single property of a root type.

```
struct KeyframeTrack<Root, Value, Content> where Value == Content.Value, Content : KeyframeTrackContent
```

## Topics

### Creating a keyframe track

[`init(content:)`](/documentation/SwiftUI/KeyframeTrack/init(content:))

Creates an instance that animates the entire value from the root of the key path.

[`init(_:content:)`](/documentation/SwiftUI/KeyframeTrack/init(_:content:))

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

## Relationships

### Conforms To

[`Keyframes`](/documentation/SwiftUI/Keyframes)

---

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)