Swift framework guide for displaying, annotating, and manipulating PDF documents with PDFView, PDFDocument, and PDFAnnotation.
- skills.sh installs
- 3.4K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
What it does
- Covers display modes, document loading and saving, page navigation, text search and extraction, annotations, and thumbnails
- Includes code examples for password-protected PDFs, highlight and note annotations, and SwiftUI wrapping of PDFView
- Enforces zero-based page indexing and bounds checks, since out-of-range page calls raise exceptions
- Designed for iOS, iPadOS, macOS, and visionOS developers embedding PDF viewing or editing in apps
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill pdfkit -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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()
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Mobile Apps, Office Files & Slides
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 94- Gamekit3.4K
- Swift Architecture3.4K
- Eventkit3.4K
- Musickit3.3K
- Pencilkit3.3K
- Ios Simulator3.3K
- Carplay3.3K
- Scenekit3.3K
- Accessorysetupkit3.3K
- Homekit3.3K
- Callkit3.3K
- Cryptotokenkit3.3K
- Financekit3.3K
- Paperkit3.3K
- Adattributionkit3.3K
- Passkit3.3K
- Audioaccessorykit3.3K
- Dockkit3.3K
- Swift Security3.3K
- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
- Sensorkit3.2K
- Tabletopkit3.2K
Similar to Pdfkit
More Mobile Apps
paperkitSkilldpearson2699/swift-ios-skills3.3K installsApple's PaperKit framework for markup editing with shapes, text, images, and PencilKit drawing in one canvas.
pencilkit-drawingSkilldpearson2699/swift-ios-skills403 installsGuide for adding Apple Pencil drawing to iOS, iPadOS, and visionOS apps with PencilKit.
view-pdfSkillanthropics/knowledge-work-plugins6.4K installsInteractive PDF viewer that opens documents for visual annotation, form filling, and signature placement with live feedback.
pdf-editor-openaiPluginlawvable/awesome-legal-skills962 starsToolkit for comprehensive PDF reading and creation with visual quality control. Use to work with PDFs (.pdf files) for: (1) Reading or extracting content from e
PDF ReaderMCP serversylphlab1.1K starsConverts PDFs, Office files, web pages, and media to Markdown for AI agents, locally.
