PreviewPDFButton
struct PreviewPDFButton: View
SwiftUI View for a PDF preview button
-
The label for the button
Declaration
Swift
let label: String -
Bool if we have to replace the current preview
Declaration
Swift
var replacePreview: Bool = false -
The observable state of the application
Declaration
Swift
private var appState -
The observable state of the scene
Declaration
Swift
private var sceneState -
Environment to open windows
Declaration
Swift
private var openWindow -
The body of the
ViewDeclaration
Swift
var body: some View -
Show a preview of the PDF
Declaration
Swift
func showPreview() async -
Update the preview of the current document
See moreDeclaration
Swift
struct UpdatePreview: View
View on GitHub