<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/OptimizedTimeToFirstDrawMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit024OptimizedTimeToFirstDrawA0V"
  },
  "title" : "OptimizedTimeToFirstDrawMetric"
}
-->

# OptimizedTimeToFirstDrawMetric

A metric that measures optimized time to first draw durations for app launches.

```
struct OptimizedTimeToFirstDrawMetric
```

## Discussion

This metric corresponds to the [`MetricResult.optimizedTimeToFirstDraw(_:)`](/documentation/MetricKit/MetricResult/optimizedTimeToFirstDraw(_:)) case. It appears only in [`intervalEntries`](/documentation/MetricKit/MetricReport/intervalEntries) and is not included in state entries.

Optimized time to first draw reflects the actual user-perceived launch time when the system applies prefetching optimizations. The system may start the app in the background before the user taps its icon, so this metric can be shorter than [`TimeToFirstDrawMetric`](/documentation/MetricKit/TimeToFirstDrawMetric).

## Topics

### Measurements

[`let histogram: Histogram<UnitDuration>`](/documentation/MetricKit/OptimizedTimeToFirstDrawMetric/histogram)

Histogram of optimized time to first draw durations.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)