---
title: OptimizedTimeToFirstDrawMetric
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/optimizedtimetofirstdrawmetric
---

# OptimizedTimeToFirstDrawMetric

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

## Declaration

```swift
struct OptimizedTimeToFirstDrawMetric
```

## Discussion

Discussion This metric corresponds to the MetricResult.optimizedTimeToFirstDraw(_:) case. It appears only in 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. This type replaces the histogrammedOptimizedTimeToFirstDraw property of MXAppLaunchMetric.

## Topics

### Measurements

- [histogram](metrickit/optimizedtimetofirstdrawmetric/histogram.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Launch and responsiveness metrics

- [TimeToFirstDrawMetric](metrickit/timetofirstdrawmetric.md)
- [ApplicationResumeTimeMetric](metrickit/applicationresumetimemetric.md)
- [ExtendedLaunchMetric](metrickit/extendedlaunchmetric.md)
- [HangTimeMetric](metrickit/hangtimemetric.md)
- [HitchTimeMetric](metrickit/hitchtimemetric.md)
- [ScrollHitchTimeMetric](metrickit/scrollhitchtimemetric.md)
