---
title: TimeToFirstDrawMetric
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/timetofirstdrawmetric
---

# TimeToFirstDrawMetric

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

## Declaration

```swift
struct TimeToFirstDrawMetric
```

## Discussion

Discussion This metric corresponds to the MetricResult.timeToFirstDraw(_:) case. It appears only in intervalEntries and is not included in state entries. The measurement ends at the first Core Animation commit, which corresponds to the moment the first rendered frame is submitted to the display pipeline. This type replaces the histogrammedTimeToFirstDraw property of MXAppLaunchMetric.

## Topics

### Measurements

- [histogram](metrickit/timetofirstdrawmetric/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

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