---
title: "schedule(_:at:)"
framework: workoutkit
role: symbol
role_heading: Instance Method
path: "workoutkit/workoutscheduler/schedule(_:at:)"
---

# schedule(_:at:)

Schedules the provided workout at the specified date.

## Declaration

```swift
final func schedule(_ workout: WorkoutPlan, at: DateComponents) async
```

## Parameters

- `workout`: The workout to schedule.
- `at`: Date components that represent the workout’s starting time.
