<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKAddPassMetadataPreview",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKAddPassMetadataPreview"
  },
  "title" : "PKAddPassMetadataPreview"
}
-->

# PKAddPassMetadataPreview

A preview object that contains information representing the pass you add to Wallet.

```
class PKAddPassMetadataPreview
```

## Overview

Use this class to preview an object with all of the information you need to present a pass during provision.

## Topics

### Creating a preview of the pass

[`-  initWithPassThumbnail:localizedDescription:`](/documentation/PassKit/PKAddPassMetadataPreview/init(passThumbnail:localizedDescription:))

Provides a preview of an image object that represents the pass you add to Wallet.

[`localizedDescription`](/documentation/PassKit/PKAddPassMetadataPreview/localizedDescription)

A localized description of the pass.

[`passThumbnailImage`](/documentation/PassKit/PKAddPassMetadataPreview/passThumbnailImage)

A CGImage object representing the card artwork of the pass you use during provisioning.

[`+  previewWithPassThumbnail:localizedDescription:`](/documentation/PassKit/PKAddPassMetadataPreview/previewWithPassThumbnail:localizedDescription:)

Initializes properties you need to preview an object that represents the pass you add to Wallet.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

### Inherited By

[`Preview-swift.class`](/documentation/PassKit/PKShareablePassMetadata/Preview-swift.class)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)