---
title: "supportsGoal(_:activity:location:)"
framework: WorkoutKit
role: symbol
role_heading: Type Method
platforms: [iOS 17.0+, iPadOS 17.0+, Mac Catalyst 18.0+, macOS 15.0+, watchOS 10.0+]
path: "workoutkit/singlegoalworkout/supportsgoal(_:activity:location:)"
---

# supportsGoal(_:activity:location:)

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

## Declaration

```swift
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

- [init(activity:location:swimmingLocation:goal:)](workoutkit/singlegoalworkout/init(activity:location:swimminglocation:goal:).md)
- [supportsActivity(_:)](workoutkit/singlegoalworkout/supportsactivity(_:).md)
