supportsAlert(_:activity:location:)
Returns a Boolean value that indicates whether the system supports the specified alert for the given activity type and location.
Declaration
static func supportsAlert(_ alert: any WorkoutAlert, activity: HKWorkoutActivityType, location: HKWorkoutSessionLocationType = .unknown) -> BoolParameters
- alert:
The alert to check.
- activity:
The workout activity.
- location:
The workout location.