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.
Asked
Active
Viewed 576 times
0
-
show your code.. – Milan Nosáľ Mar 13 '18 at 11:22
-
@MilanNosáľ i have updated screenshot of code. – Gaurav Pandey Mar 13 '18 at 11:27
-
What is the name of your project? `QuickLook` ? – pkc456 Mar 13 '18 at 12:42
-
@pkc456 is this matter? QuickLook is a framework by Apple for previewing documents. – Gaurav Pandey Mar 13 '18 at 13:39
-
As Warning says file is part of module quicklook. So there might be chances of overriding that file is not getting th framework path – pkc456 Mar 13 '18 at 13:47
-
So what's the solution? – Gaurav Pandey Mar 14 '18 at 14:14
1 Answers
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