Skip to content

Instantly share code, notes, and snippets.

View siliconsorcery's full-sized avatar
🤔
Trying to Think

Silicon Sorcery siliconsorcery

🤔
Trying to Think
View GitHub Profile
@siliconsorcery
siliconsorcery / PDFKitView.swift
Last active August 13, 2022 02:00
PDF View in SwiftUI
import SwiftUI
import PDFKit
struct PDFPage: View {
var body: some View {
let url = URL(string: "https://web.stanford.edu/class/archive/cs/cs161/cs161.1168/lecture4.pdf")!
let pdfDoc = PDFDocument(url: url)!