---
title: "responds(to:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nsproxy/responds(to:)"
---

# responds(to:)

Returns a Boolean value that indicates whether the receiving class responds to a given selector.

## Declaration

```swift
class func responds(to aSelector: Selector) -> Bool
```

## Parameters

- `aSelector`: A selector.

## Return Value

Return Value true if the receiving class responds to aSelector messages, otherwise false.
