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