I'm having an issue with the displaying a PDF using hte new PDFKit Beta for ios 11 beta. When loading the pdf in PDF view, the PDF displays. However, about the top inch of the page is clipped. I can touch the view and pull down to scroll the pdf so that I can see the top inch of of the PDF. I can't seem to find a way to make PDFView scroll and display the top when the pdf is originaly loaded. Am I missing something? Here is my code, which is based on the PDFAnnotationAnnotationWidgetsAdvanced.if let documentURL = Bundle.main.url(forResource: "Acupuncture Intake", withExtension: "pdf"), let document = PDFDocument(url: documentURL), let pg = document.page(at: 0) { pdfView?.document = pg.document pdfView?.autoScales = true pdfView?.backgroundColor = UIColor.lightGray pdfView?.displaysPageBreaks = true; pdfView?.displayMode = .singlePage }
Post
Replies
Boosts
Views
Activity
I've deployed my first swift iOS app that supports iPhone, iPad, and Mac. However, when I look at the app in the Mac App store, the App says it is not compatible with my intel mac that i build ran and test it on. Looking at the listed requirements under compatibility in the store says that it requires iOS 11 and a mac with the Apple M1 chip. Is there a way to make my app compatible with intel Macs as well? This is a little frustrating.
Is it possible to get the complete source code project for the Book club app in wwdc20-10040. I look through the WWDC source code, but could not find it.