If you're building a Swift app that needs to show, search, or mark up PDFs, this gives you the complete PDFKit playbook. It covers everything from dropping a PDFView into your controller and wiring up page navigation to running async searches, extracting text from specific regions, and adding annotations like highlights, sticky notes, and form widgets. The skill includes thumbnail strips, SwiftUI wrappers, and password-protected document handling. PDFKit ships with iOS so there's no external dependency, and this reference gets you past the awkward API surface with working examples for each feature. Solid if you're doing anything beyond just displaying a static PDF.
- skills.sh installs
- 3.3K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill pdfkit --agent claude-codeInstalls into .claude/skills of the current project.
Files
PDFKit
Display, navigate, search, annotate, and manipulate PDF documents with PDFView, PDFDocument, PDFPage, PDFAnnotation, and PDFSelection.
Contents
- Setup
- Displaying PDFs
- Loading Documents
- Page Navigation
- Text Search and Selection
- Annotations
- Thumbnails
- SwiftUI Integration
- Common Mistakes
- Review Checklist
- References
Setup
PDFKit requires no entitlements or Info.plist entries.
import PDFKit
| API | Availability |
|---|---|
| PDFKit framework | iOS/iPadOS/tvOS 11+, Mac Catalyst 13.1+, macOS 10.4+, visionOS 1.0+ |
| Find interaction and page overlays | iOS/iPadOS 16+ |
Displaying PDFs
PDFView renders PDF content and handles zoom, scrolling, text selection, and page navigation.
import PDFKit
import UIKit
class PDFViewController: UIViewController {
let pdfView = PDFView()
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- AI & Agent Building, Mobile Development, Office & Documents
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Gamekit3.3K
- Eventkit3.3K
- Musickit3.3K
- Swift Architecture3.3K
- Pencilkit3.3K
- Carplay3.2K
- Ios Simulator3.2K
- Scenekit3.2K
- Homekit3.2K
- Accessorysetupkit3.2K
- Callkit3.2K
- Cryptotokenkit3.2K
- Financekit3.2K
- Adattributionkit3.2K
- Paperkit3.2K
- Passkit3.2K
- Audioaccessorykit3.2K
- Dockkit3.2K
- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
- Sensorkit3.2K
- Swift Security3.2K
- Tabletopkit3.1K
