---
title: allowedClasses
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nscoder/allowedclasses
---

# allowedClasses

The set of coded classes allowed for secure coding.

## Declaration

```swift
var allowedClasses: Set<AnyHashable>? { get }
```

## Discussion

Discussion Secure coders check this set of allowed classes before decoding objects, and all objects must implement the NSSecureCoding protocol.

## See Also

### Secure Coding

- [requiresSecureCoding](foundation/nscoder/requiressecurecoding.md)
