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

# init(_:id:)

Create an AccessibilityCustomContentKey with the specified label and identifier.

## Declaration

```swift
init(_ label: LocalizedStringResource, id: String)
```

## Parameters

- `label`: Localized text describing to the user what is contained in this additional information entry. For example: “orientation”.
- `id`: String used to identify the additional information entry to SwiftUI. Adding an entry will replace any previous value with the same identifier.

## See Also

### Creating a key

- [init(_:)](swiftui/accessibilitycustomcontentkey/init(_:).md)
