Currently I have rendered an sample pdf file on PDFView using PDFDocument.
pdfView.autoScales = true
pdfView.displayDirection = .horizontal
pdfView.displayMode = .singlePage
pdfView.usePageViewController(true, withViewOptions: [UIPageViewControllerOptionInterPageSpacingKey: 20])
pdfView.document = pdfDocument
So when I swipe on the view it slides to next or previous page respectively as I'm using pageViewController.
The problem arises here,
If I want to annot certain part of text then as I start dragging on the text it slides to next page instead of continous selection of the text.
If I do long press, then im only able to select one word or the native OS selection with Copy, Selectall pop's up which is not my requirement.
As user starts selecting the text I need to add annotation of highlight.