PDFKitRepresentedView
struct PDFKitRepresentedView: NSViewRepresentable
SwiftUI NSViewRepresentable for a PDF View
-
The data of the PDF
Declaration
Swift
let data: Data -
Make the
ViewDeclaration
Swift
func makeNSView(context: NSViewRepresentableContext<PDFKitRepresentedView>) -> PDFViewParameters
contextThe context
Return Value
The PDFView
-
Update the
ViewDeclaration
Swift
func updateNSView(_ pdfView: PDFView, context: NSViewRepresentableContext<PDFKitRepresentedView>)Parameters
pdfViewThe PDFView
contextThe context
-
The view parameters of a PDF
See moreDeclaration
Swift
struct PDFParameters
View on GitHub