---
title: "init(label:value:)"
framework: accessibility
role: symbol
role_heading: Initializer
path: "accessibility/axcustomcontent/init(label:value:)"
---

# init(label:value:)

Creates new custom content with a label and value.

## Declaration

```swift
convenience init(label: String, value: String)
```

## Parameters

- `label`: A localized string that identifies the label for this content.
- `value`: A localized string that provides a value for the label.

## See Also

### Creating custom content

- [init(attributedLabel:attributedValue:)](accessibility/axcustomcontent/init(attributedlabel:attributedvalue:).md)
- [init(coder:)](accessibility/axcustomcontent/init(coder:).md)
