<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WorkoutKit",
  "identifier" : "/documentation/WorkoutKit/SpeedThresholdAlert",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WorkoutKit"
    ],
    "preciseIdentifier" : "s:10WorkoutKit19SpeedThresholdAlertV"
  },
  "title" : "SpeedThresholdAlert"
}
-->

# SpeedThresholdAlert

An alert for a speed threshold.

```
struct SpeedThresholdAlert
```

## Topics

### Creating speed threshold alerts

[`init(target: Measurement<UnitSpeed>, metric: WorkoutAlertMetric)`](/documentation/WorkoutKit/SpeedThresholdAlert/init(target:metric:))

Creates a new speed threshold alert.

### Accessing alert data

[`var target: Measurement<UnitSpeed>`](/documentation/WorkoutKit/SpeedThresholdAlert/target)

A speed measurement that represents the target threshold.

[`var targetQuantity: HKQuantity`](/documentation/WorkoutKit/SpeedThresholdAlert/targetQuantity)

A HealthKit quantity that represents the target speed threshold.

### Comparing alerts

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`WorkoutAlert`](/documentation/WorkoutKit/WorkoutAlert)

---

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)