---
title: Accessibility Functions
framework: appkit
role: collectionGroup
role_heading: API Collection
path: appkit/accessibility-functions
---

# Accessibility Functions

Global accessibility functions for custom views and controls.

## Overview

Overview Use these NSAccessibility functions to enhance the accessibility experience of your custom view or control. Standard AppKit elements handle this behavior for you. Notifications Your custom view or control may need to let the assistive app know when changes occur. For example, if your control’s value changes, you need to send a valueChanged notification. NSAccessibility.Notification defines a number of notifications that you can send using the post(element:notification:) method. You typically need to send your own notifications only when you’re creating a custom control or when you’re using a standard control in a nonstandard way. Make sure you’re posting any relevant notifications as your control’s state changes.

## Topics

### Notifications

- [post(element:notification:)](appkit/nsaccessibility-swift.struct/post(element:notification:).md)
- [post(element:notification:userInfo:)](appkit/nsaccessibility-swift.struct/post(element:notification:userinfo:).md)
- [NSAccessibility.Notification](appkit/nsaccessibility-swift.struct/notification.md)
- [NSAccessibility.NotificationUserInfoKey](appkit/nsaccessibility-swift.struct/notificationuserinfokey.md)

### Screen Coordinates

- [screenRect(fromView:rect:)](appkit/nsaccessibility-swift.struct/screenrect(fromview:rect:).md)
- [screenPoint(fromView:point:)](appkit/nsaccessibility-swift.struct/screenpoint(fromview:point:).md)

### Accessibility Objects

- [unignoredChildren(from:)](appkit/nsaccessibility-swift.struct/unignoredchildren(from:).md)
- [unignoredChildrenForOnlyChild(from:)](appkit/nsaccessibility-swift.struct/unignoredchildrenforonlychild(from:).md)
- [unignoredDescendant(of:)](appkit/nsaccessibility-swift.struct/unignoreddescendant(of:).md)
- [unignoredAncestor(of:)](appkit/nsaccessibility-swift.struct/unignoredancestor(of:).md)

### Protected Content

- [setMayContainProtectedContent(_:)](appkit/nsaccessibility-swift.struct/setmaycontainprotectedcontent(_:).md)

### Descriptions

- [description](appkit/nsaccessibility-swift.struct/action/description.md)
- [description(with:)](appkit/nsaccessibility-swift.struct/role/description(with:).md)
- [description(for:)](appkit/nsaccessibility-swift.struct/role/description(for:).md)

## See Also

### Custom View Subclasses

- [Custom Controls](appkit/custom-controls.md)
