<!--
{
  "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/SpeedRangeAlert",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WorkoutKit"
    ],
    "preciseIdentifier" : "s:10WorkoutKit15SpeedRangeAlertV"
  },
  "title" : "SpeedRangeAlert"
}
-->

# SpeedRangeAlert

An alert for a range of speed values.

```
struct SpeedRangeAlert
```

## Topics

### Creating speed range alerts

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

Creates a new speed alert for the provided range of values.

### Accessing alert data

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

The target range of speed measurements.

[`var targetQuantityLowerBound: HKQuantity`](/documentation/WorkoutKit/SpeedRangeAlert/targetQuantityLowerBound)

The target range’s lower bounds.

[`var targetQuantityUpperBound: HKQuantity`](/documentation/WorkoutKit/SpeedRangeAlert/targetQuantityUpperBound)

The target range’s upper bounds.

### Comparing alerts

## Relationships

### Conforms To

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

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

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

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

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