<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USDKit",
  "identifier" : "/documentation/USDKit/USDLayer/TimeCode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDLayerV8TimeCodeV"
  },
  "title" : "USDLayer.TimeCode"
}
-->

# USDLayer.TimeCode

A time value in USD, typically used for animation keyframe times.

```
struct TimeCode
```

## Overview

Wraps a `Double` but is treated as a distinct schema-registered
value type by USD, allowing attributes to be explicitly typed
as time code rather than generic floating-point.

## Topics

### Initializers

[`init(Double)`](/documentation/USDKit/USDLayer/TimeCode/init(_:))

Creates a time code at the given time.

### Instance Properties

[`var value: Double`](/documentation/USDKit/USDLayer/TimeCode/value)

The underlying time value as a Double.

### Type Properties

[`static let `default`: USDLayer.TimeCode`](/documentation/USDKit/USDLayer/TimeCode/default)

The default time code (0.0).

## Relationships

### Conforms To

[`ExpressibleByFloatLiteral`](/documentation/Swift/ExpressibleByFloatLiteral)

[`Hashable`](/documentation/Swift/Hashable)

[`Comparable`](/documentation/Swift/Comparable)

[`Copyable`](/documentation/Swift/Copyable)

[`Value`](/documentation/USDKit/USDPrim/Attribute/Value)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`USDValueProtocol`](/documentation/USDKit/USDValueProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

---

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)