init(fileURL:)
Creates a preview reply from an existing file URL.
Declaration
init(fileURL: URL)Parameters
- fileURL:
The file URL with the content of the reply.
Discussion
Use init(fileURL:) to create a reply from an existing file URL, such as an image or PDF. The following example illustrates creating a reply from an existing URL:
guard let imageFileURL = Bundle.main.url(forResource: "yourImage",
withExtension: "jpg") else {
return
}
let reply = QLPreviewReply(fileURL: imageFileURL)