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) -> BoolParameters
- goal:
The target goal.
- activity:
The workout’s activity type.
- location:
The workout’s location.