Contents

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) -> Bool

Parameters

  • alert:

    The alert to check.

  • activity:

    The workout activity.

  • location:

    The workout location.

See Also

Creating custom workouts