---
title: "pickerView(_:accessibilityAttributedHintForComponent:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityattributedhintforcomponent:)"
---

# pickerView(_:accessibilityAttributedHintForComponent:)

Returns an attributed string that describes the result of performing an action on the specified component.

## Declaration

```swift
optional func pickerView(_ pickerView: UIPickerView, accessibilityAttributedHintForComponent component: Int) -> NSAttributedString?
```

## Parameters

- `pickerView`: The picker view object.
- `component`: The component in the picker view that requires a hint.

## Return Value

Return Value The localized attributed string that describes the results of performing an action on the specified component.

## Discussion

Discussion Implement this optional method to ensure that the accessibility element representing the picker view provides an appropriate hint for each component. Your attributed string may include the UIAccessibilitySpeechAttributeLanguage attribute, which lets you use different language synthesizers for different parts of the string. The system prefers this method over the pickerView(_:accessibilityHintForComponent:) method. For in-depth information on how to create an appropriate hint, see Guidelines for Creating Hints.

## See Also

### Providing descriptive information

- [pickerView(_:accessibilityLabelForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilitylabelforcomponent:).md)
- [pickerView(_:accessibilityAttributedLabelForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityattributedlabelforcomponent:).md)
- [pickerView(_:accessibilityHintForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityhintforcomponent:).md)
- [pickerView(_:accessibilityUserInputLabelsForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityuserinputlabelsforcomponent:).md)
- [pickerView(_:accessibilityAttributedUserInputLabelsForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityattributeduserinputlabelsforcomponent:).md)
