Contents

supportsGoal(_:activity:location:)

Returns a Boolean value that determines whether the system supports the provided goal.

Declaration

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

Parameters

  • goal:

    The target goal.

  • activity:

    The workout’s activity type.

  • location:

    The workout’s location.

See Also

Creating single goal workouts