title: How to NSKeyedUnarchiver.unarchiveObject
body: <p>I have a working code that works but deprecated: </p>
  
  <p>This part is fine: </p>
  
  <pre><code> let archived = try? NSKeyedArchiver.archivedData(withRootObject: [defaultRecord] as NSArray, requiringSecureCoding: false)
  </code></pre>
  
  <p>This is Deprecated:</p>
  
  <pre><code> let records = NSKeyedUnarchiver.unarchiveObject(with: unarchivedObject as Data) as? [Record]
  </code></pre>
  
  <blockquote>
    <p>'unarchiveObject(with:)' was deprecated in iOS 12.0: Use
    +unarchivedObjectOfClass:fromData:error: instead</p>
  </blockquote>
  
  <p>Sounds simple as it is, I couldn't find a way to use the suggested method without getting errors in every combination I tried.</p>
  
  <p>Any working example of this?</p>