---
title: "init(waitUntilResponsive:)"
framework: xctest
role: symbol
role_heading: Initializer
path: "xctest/xctapplicationlaunchmetric/init(waituntilresponsive:)"
---

# init(waitUntilResponsive:)

Initializes a metric that records the time for an app to display its first frame to screen and complete all extended launch tasks, or to display its first frame and wait until the app is responsive.

## Declaration

```swift
init(waitUntilResponsive: Bool)
```

## Parameters

- `waitUntilResponsive`: A Boolean that enables the metric to track time until the main thread is responsive after displaying the first frame. If false, the metric tracks time until the app has displayed its first frame and completed all extended launch tasks that doc://com.apple.documentation/documentation/MetricKit/MXMetricManager/extendLaunchMeasurement(forTaskID:) starts.

## See Also

### Related Documentation

- [MXMetricManager](metrickit/mxmetricmanager.md)

### Initializers

- [init()](xctest/xctapplicationlaunchmetric/init().md)
