Contents

supportsGoal(_:activity:location:)

Returns a Boolean value that indicates whether the system supports the specified goal for the given activity type and location.

Declaration

static func supportsGoal(_ goal: WorkoutGoal, activity: HKWorkoutActivityType, location: HKWorkoutSessionLocationType = .unknown) -> Bool

Parameters

  • goal:

    The goal to check.

  • activity:

    The workout activity.

  • location:

    The workout location.

See Also

Creating custom workouts