---
title: XCTHitchMetric
framework: xctest
role: symbol
role_heading: Class
path: xctest/xcthitchmetric
---

# XCTHitchMetric

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

## Declaration

```swift
class XCTHitchMetric
```

## Discussion

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 Understanding hitches in your app.

## Topics

### Creating a hitch metric

- [init(application:)](xctest/xcthitchmetric/init(application:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [XCTMetric](xctest/xctmetric.md)

## See Also

### Measurement Metrics

- [XCTMetric](xctest/xctmetric.md)
- [XCTCPUMetric](xctest/xctcpumetric.md)
- [XCTClockMetric](xctest/xctclockmetric.md)
- [XCTMemoryMetric](xctest/xctmemorymetric.md)
- [XCTOSSignpostMetric](xctest/xctossignpostmetric.md)
- [XCTStorageMetric](xctest/xctstoragemetric.md)
- [XCTApplicationLaunchMetric](xctest/xctapplicationlaunchmetric.md)
