---
title: "description(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsaccessibility-swift.struct/role/description(with:)"
---

# description(with:)

Returns a standard description for a role and subrole.

## Declaration

```swift
func description(with subrole: NSAccessibility.Subrole?) -> String?
```

## Discussion

Discussion You should pass nil to this function if there is no subrole. This function returns a description of a standard role. For example, if you implement a button widget that does not inherit from NSButton, you should use this function to return a localized role description matching that returned by a standard button.

## See Also

### Descriptions

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