0

I would like to implement QuickLook framework in swift 4 to preview Documents or PDF, but getting this issue, while this is working in Objective C. had tried a lot, Could someone please help. I am not even getting any sample anywhere QuickLook framework with swift 4.

enter image description here

Gaurav Pandey
  • 1,953
  • 3
  • 23
  • 37

1 Answers1

1

You did not import the module "QuickLook" (see the warning you got) because you're presumably in a target named "QuickLook". Since you did not import QuickLook, QLPreviewControllerDataSource was not imported. Rename your target and you should be all set.

Thomas Deniau
  • 2,488
  • 1
  • 15
  • 15