<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WorkoutKit",
  "identifier" : "/documentation/WorkoutKit/WorkoutPlan/init(_:id:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WorkoutKit"
    ],
    "preciseIdentifier" : "s:10WorkoutKit0A4PlanV_2idA2C0A0O_10Foundation4UUIDVtcfc"
  },
  "title" : "init(_:id:)"
}
-->

# init(_:id:)

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

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

## Parameters

`workout`

The workout represented by this plan.

`id`

A unique ID for the plan.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)