---
title: "power(_:unit:)"
framework: workoutkit
role: symbol
role_heading: Type Method
path: "workoutkit/workoutalert/power(_:unit:)-289mz"
---

# power(_:unit:)

Creates an alert for the specified power threshold.

## Declaration

```swift
static func power(_ value: Double, unit: UnitPower) -> Self
```

## Parameters

- `value`: The target power threshold for the alert.
- `unit`: The power units used for the threshold.

## See Also

### Creating power alerts

- [power(_:unit:)](workoutkit/workoutalert/power(_:unit:)-57ekz.md)
- [PowerRangeAlert](workoutkit/powerrangealert.md)
- [PowerThresholdAlert](workoutkit/powerthresholdalert.md)
- [power(zone:)](workoutkit/workoutalert/power(zone:).md)
- [PowerZoneAlert](workoutkit/powerzonealert.md)
