What problem does it solve?
This Skill removes guesswork when building iOS apps that need to display, navigate, search, and modify PDF files using PDFKit, so you can implement PDF functionality correctly and reliably.
Core Features & Use Cases
- Display & Navigation: Render PDFs with PDFView, jump to pages, and integrate browsing/selection flows.
- Document Loading & Editing: Create PDFDocument instances from URLs/Data, handle password-protected PDFs, insert/remove/exchange pages, and write updated documents.
- Search, Extract, and Highlight Text: Find strings (sync/async patterns), extract document/page/region text via PDFSelection, and apply highlighted selections.
- Annotations & Thumbnails: Add common annotation types (highlights, notes, links, widgets) and generate/display thumbnails efficiently.
- SwiftUI Integration: Wrap PDFView for SwiftUI using UIViewRepresentable, including practical update rules for reference identity.
Quick Start
Use the pdfkit skill to implement a SwiftUI screen that loads a local PDF file, displays it with PDFView, enables page navigation and text search, and adds a highlighted annotation based on a search term.