<!--
{
  "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/Keyframes",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI9KeyframesP"
  },
  "title" : "Keyframes"
}
-->

# Keyframes

A type that defines changes to a value over time.

```
protocol Keyframes<Value>
```

## Topics

### Creating a keyframe

[`var body: Self.Body`](/documentation/SwiftUI/Keyframes/body-swift.property)

The composition of content that comprise the keyframes.

[`associatedtype Body : Keyframes`](/documentation/SwiftUI/Keyframes/Body-swift.associatedtype)

The type of keyframes representing the body of this type.

[`associatedtype Value = Self.Body.Value`](/documentation/SwiftUI/Keyframes/Value)

The type of value animated by this keyframes type

## Relationships

### Conforming Types

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

---

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)