VGSPDFView
@available(iOS 11.0, *)
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
public weak var delegate: VGSPDFViewDelegate?
-
Pdf display mode, default is
.singlePageContinuous
.Declaration
Swift
public var pdfDisplayMode: PDFDisplayMode { get set }
-
PDf layout direction, either vertical or horizontal for the given display mode, default is
.vertical
.Declaration
Swift
public var pdfDisplayDirection: PDFDisplayDirection { get set }
-
A boolean value indicating whether pdf is autoscaling, default is
true
.Declaration
Swift
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
public var displayAsBook: Bool { get set }
-
Background color of pdf viewer. Default is
gray
with 50% opacity.Declaration
Swift
public var pdfBackgroundColor: UIColor? { get set }
-
Determines if shadows should be drawn around page borders in a pdfView, default is
true
.Declaration
Swift
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
public var contentPath: String! { get set }
-
A Boolean value determines whether the view has document.
Declaration
Swift
public var hasDocument: Bool { get }