Swiftpack.co - Package - HackingGate/HGPDFKit

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

HackingGate/HGPDFKit

Apple PDFKit extension in Swift

HGPDFKit GitHub license

Apple PDFKit extension in Swift

Usage

UIScrollView

You can directely access pdfView's scrollView by

pdfView.scrollView?

Auto zoom

Auto zoom in or out

pdfView.autoZoomInOrOut(location: sender.location(in: "location you want to zoom"), animated: true)

Is it zoomed in?

pdfView.isZoomedIn

RTL (Right to Left)

Change to RTL

pdfView.transformViewForRTL(true, pdfThumbnailView)

Is it chnaged to RTL?

pdfView.isViewTransformedForRTL

Requirement

iOS 11.3
Swift 4

Example

CocoaPods

Run pod try HGPDFKit.

SwiftPM

Clone the project and open Example folder.

Acknowledgement

BookReader

Website: https://github.com/kishikawakatsumi/BookReader
License: MIT

Github

link
Stars: 2
Last commit: 2 weeks ago