<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupOrderedSet/ElementID/init(_:)-5ja8j",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit16MarkupOrderedSetV9ElementIDOyAeA0cG0VyxGcAA0C0Rzlufc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a new element ID from a markup ID.

```
init<T>(_ id: MarkupID<T>) where T : Markup
```

## Discussion

Supports all PaperKit types, will `fatalError` if used for an unsupported type.

---

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)