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

# KeyframeTrackContentBuilder

The builder that creates keyframe track content from the keyframes
that you define within a closure.

```
@resultBuilder struct KeyframeTrackContentBuilder<Value> where Value : Animatable
```

## Topics

### Building keyframe track content

[`static func buildArray([some KeyframeTrackContent<Value>]) -> some KeyframeTrackContent<Value>`](/documentation/SwiftUI/KeyframeTrackContentBuilder/buildArray(_:))

[`static func buildBlock() -> some KeyframeTrackContent<Value>`](/documentation/SwiftUI/KeyframeTrackContentBuilder/buildBlock())

[`static func buildEither<First, Second>(first: First) -> KeyframeTrackContentBuilder<Value>.Conditional<Value, First, Second>`](/documentation/SwiftUI/KeyframeTrackContentBuilder/buildEither(first:))

[`static func buildEither<First, Second>(second: Second) -> KeyframeTrackContentBuilder<Value>.Conditional<Value, First, Second>`](/documentation/SwiftUI/KeyframeTrackContentBuilder/buildEither(second:))

[`static func buildExpression<K>(K) -> K`](/documentation/SwiftUI/KeyframeTrackContentBuilder/buildExpression(_:))

[`static func buildPartialBlock(accumulated: some KeyframeTrackContent<Value>, next: some KeyframeTrackContent<Value>) -> some KeyframeTrackContent<Value>`](/documentation/SwiftUI/KeyframeTrackContentBuilder/buildPartialBlock(accumulated:next:))

[`static func buildPartialBlock<K>(first: K) -> K`](/documentation/SwiftUI/KeyframeTrackContentBuilder/buildPartialBlock(first:))

[`struct Conditional`](/documentation/SwiftUI/KeyframeTrackContentBuilder/Conditional)

A conditional result from the result builder.



---

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)