---
title: "unarchivedArrayOfObjects(ofClass:from:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nskeyedunarchiver/unarchivedarrayofobjects(ofclass:from:)"
---

# unarchivedArrayOfObjects(ofClass:from:)

## Declaration

```swift
@nonobjc static func unarchivedArrayOfObjects<DecodedObject>(ofClass cls: DecodedObject.Type, from data: Data) throws -> [DecodedObject]? where DecodedObject : NSObject, DecodedObject : NSSecureCoding
```
