PDF Kit View is not inside my Xcode Objects Library

485 Views Asked by At

I'm currently using Xcode Version 10.1 (10B61), MacBook Pro (Late 2011) 10.13.6 High Sierra.

I want to add a PDF Kit View into my storyboard but it is just not listed inside the Objects Library.

1

There are 1 best solutions below

2
On BEST ANSWER

PDFView is not listed inside the StoryBoard by default but you can just subclass a normal UIView class into PDFView inside the StoryBoard and make an outlet inside ViewController. Further, you would need to import PDFKit to make it work.

Refer this for more info on implementation