Skip to content

iOS components Advanced

StanceDocumentPreview

Stable

Previews a local PDF, image or document with the system Quick Look viewer (iOS only).

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onQLPreviewController
  • Kindview

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceDocumentPreview on iOS and iPadOSStanceDocumentPreview on iOS and iPadOSStanceDocumentPreview on iOS and iPadOS
StanceDocumentPreview, Light appearance
Light
StanceDocumentPreview, Dark appearance
Dark
StanceDocumentPreview, High contrast appearance
High contrast

Usage

swift
StanceDocumentPreview(url: URL(fileURLWithPath: "/tmp/contract.pdf"))

Accessibility

  • Quick Look provides zoom, VoiceOver and text selection