---
title: QLPreviewReply
framework: quicklook
role: symbol
role_heading: Class
path: quicklook/qlpreviewreply
---

# QLPreviewReply

## Declaration

```swift
class QLPreviewReply
```

## Overview

Overview To provide a data-based preview, you have to return a QLPreviewReply object.

## Topics

### Initializers

- [init(contextSize:isBitmap:drawUsing:)](quicklook/qlpreviewreply/init(contextsize:isbitmap:drawusing:).md)
- [init(dataOfContentType:contentSize:createDataUsing:)](quicklook/qlpreviewreply/init(dataofcontenttype:contentsize:createdatausing:).md)
- [init(fileURL:)](quicklook/qlpreviewreply/init(fileurl:).md)
- [init(forPDFWithPageSize:createDocumentUsing:)](quicklook/qlpreviewreply/init(forpdfwithpagesize:createdocumentusing:).md)

### Instance Properties

- [attachments](quicklook/qlpreviewreply/attachments.md)
- [stringEncoding](quicklook/qlpreviewreply/stringencoding-8rrio.md)
- [title](quicklook/qlpreviewreply/title.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### QuickLookUI symbols

- [QLFilePreviewRequest](quicklook/qlfilepreviewrequest.md)
- [QLPreviewProvider](quicklook/qlpreviewprovider.md)
- [QLPreviewReplyAttachment](quicklook/qlpreviewreplyattachment.md)
- [QLPreviewItem](quicklook/qlpreviewitem.md)
- [QLPreviewingController](quicklook/qlpreviewingcontroller.md)
