---
title: "init(_:id:)"
framework: workoutkit
role: symbol
role_heading: Initializer
path: "workoutkit/workoutplan/init(_:id:)"
---

# init(_:id:)

Creates a new workout plan from the provided workout and ID.

## Declaration

```swift
init(_ workout: WorkoutPlan.Workout, id: UUID = UUID())
```

## Parameters

- `workout`: The workout represented by this plan.
- `id`: A unique ID for the plan.

## See Also

### Creating a workout plan

- [WorkoutPlan.Workout](workoutkit/workoutplan/workout-swift.enum.md)
