<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTApplicationLaunchMetric/init(waitUntilResponsive:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTApplicationLaunchMetric(im)initWithWaitUntilResponsive:"
  },
  "title" : "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.

```
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

  <doc://com.apple.documentation/documentation/MetricKit/MXMetricManager>



---

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)