New advertisers: 50% off your first month with code FIRSTMONTHSee slots

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
View on GitHub

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 -y

Installs 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

PDFKit requires no entitlements or Info.plist entries.

import PDFKit
APIAvailability
PDFKit frameworkiOS/iPadOS/tvOS 11+, Mac Catalyst 13.1+, macOS 10.4+, visionOS 1.0+
Find interaction and page overlaysiOS/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

Similar to Pdfkit

More Mobile Apps