<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/TemporalAdaptor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents15TemporalAdaptorV"
  },
  "title" : "TemporalAdaptor"
}
-->

# TemporalAdaptor

A temporal transformer that applies a regular transformer to each value of a temporal sequence.

```
struct TemporalAdaptor<Base> where Base : Transformer, Base : Sendable
```

## Topics

### Creating a temporal adaptor

[`init(Base)`](/documentation/CreateMLComponents/TemporalAdaptor/init(_:))

Creates a temporal transformer from a transformer.

### Applying a temporal adapter

[`func applied(to: some TemporalSequence<Base.Input>, eventHandler: EventHandler?) async throws -> AnyTemporalSequence<TemporalAdaptor<Base>.Output>`](/documentation/CreateMLComponents/TemporalAdaptor/applied(to:eventHandler:))

Performs the transformation on each element of the input sequence.

### Supporting types

[`typealias Input`](/documentation/CreateMLComponents/TemporalAdaptor/Input)

The input type.

[`typealias Output`](/documentation/CreateMLComponents/TemporalAdaptor/Output)

The output type.

[`typealias OutputSequence`](/documentation/CreateMLComponents/TemporalAdaptor/OutputSequence)

The output sequence type.

## Relationships

### Conforms To

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

[`TemporalTransformer`](/documentation/CreateMLComponents/TemporalTransformer)

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

---

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)