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
View
Declaration
Swift
func makeNSView(context: Context) -> NSView
-
Update the
View
Declaration
Swift
func updateNSView(_ nsView: NSView, context: Context)
-
Make a
coordinator
for theNSViewRepresentable
Declaration
Swift
func makeCoordinator() -> Coordinator
-
Declaration
Swift
class Coordinator: NSObject, @preconcurrency NSSharingServicePickerDelegate