---
title: class()
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/nsproxy/class()
---

# class()

Returns self (the class object).

## Declaration

```swift
class func `class`() -> AnyClass
```

## Return Value

Return Value self. Because this is a class method, it returns the class object

## See Also

### Describing a Proxy Class or Object

- [description](foundation/nsproxy/description.md)
- [debugDescription](foundation/nsproxy/debugdescription.md)
