<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTHitchMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTHitchMetric"
  },
  "title" : "XCTHitchMetric"
}
-->

# XCTHitchMetric

A metric to measure the number of hitches your UI encounters in a performance test.

```
class XCTHitchMetric
```

## Discussion

A hitch occurs when your app doesn’t prepare the content it displays in time for the system to render it in the next screen update.
For more information, see <doc://com.apple.documentation/documentation/Xcode/understanding-hitches-in-your-app>.

## Topics

### Creating a hitch metric

[`init(application:)`](/documentation/XCTest/XCTHitchMetric/init(application:))

Initializes a metric that measures hitches metric in the specified app.



---

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)