VGSPDFView
@available(iOS 11.0, *)
@MainActor
public final class VGSPDFView : UIView, VGSShowPdfViewProtocol
An object that displays revealed pdf data.
-
The object that acts as the delegate of the
VGSPDFView
.Declaration
Swift
@MainActor public weak var delegate: VGSPDFViewDelegate?
-
PDF display mode, default is
.singlePageContinuous
.Declaration
Swift
@MainActor public var pdfDisplayMode: PDFDisplayMode { get set }
-
PDF layout direction, either vertical or horizontal for the given display mode, default is
.vertical
.Declaration
Swift
@MainActor public var pdfDisplayDirection: PDFDisplayDirection { get set }
-
A boolean value indicating whether pdf is autoscaling, default is
true
.Declaration
Swift
@MainActor public var pdfAutoScales: Bool { get set }
-
A Boolean value determines whether the view will display the first page as a book cover (meaningful only when the document is in two-up or two-up continuous display mode).
Declaration
Swift
@MainActor public var displayAsBook: Bool { get set }
-
Background color of PDF viewer.
Declaration
Swift
@MainActor public var pdfBackgroundColor: UIColor? { get set }
-
Determines if shadows should be drawn around page borders in a pdfView, default is
true
.Declaration
Swift
@MainActor public var pageShadowsEnabled: Bool { get set }
-
Name that will be associated with
VGSPDFView
and used as a decoding contentPath on request response with revealed data from your organization vault.Declaration
Swift
@MainActor public var contentPath: String! { get set }
-
A Boolean value determines whether the view has document.
Declaration
Swift
@MainActor public var hasDocument: Bool { get }