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) -> BoolParameters
- goal:
The goal to check.
- activity:
The workout activity.
- location:
The workout location.