AppKitUtils
enum AppKitUtils
A collection of AppKit functions and View Representable’s
-
SwiftUI
See moreNSViewRepresentablefor a PDF ViewDeclaration
Swift
struct PDFKitRepresentedView: NSViewRepresentable -
Show a QL preview of an URL
See moreNote
I don’t use the SwiftUI.quickLookPreview($url)here because that seems to conflict with aNSTextViewin a `NSViewRepresentable. Unsaved documents cannot be previewed on macOS 14 for some unknown reason…Declaration
Swift
public struct QLPreviewRepresentedView: NSViewRepresentable -
SwiftUI
See moreNSViewRepresentablefor a Sharing Service PickerDeclaration
Swift
struct SharingServiceRepresentedView: NSViewRepresentable -
Show a
AppKitPrint Dialog for a PDFDeclaration
Swift
static func printDialog(exportURL: URL)Parameters
exportURLThe URL of the export PDF
View on GitHub