SharingServiceRepresentedView
struct SharingServiceRepresentedView: NSViewRepresentable
SwiftUI NSViewRepresentable for a Sharing Service Picker
-
Bool to show the sharing picker
Declaration
Swift
var isPresented: Bool -
The URL of the document to share
Declaration
Swift
var url: URL? -
Make the
ViewDeclaration
Swift
func makeNSView(context: Context) -> NSView -
Update the
ViewDeclaration
Swift
func updateNSView(_ nsView: NSView, context: Context) -
Make a
coordinatorfor theNSViewRepresentableDeclaration
Swift
func makeCoordinator() -> Coordinator -
Declaration
Swift
class Coordinator: NSObject, @preconcurrency NSSharingServicePickerDelegate
View on GitHub