         }
     }
 }
+#endif
+
+#if canImport(UIKit)
+import UIKit
+
+extension _Share: UIViewControllerRepresentable {
+    func makeUIViewController(context: Context) -> UIActivityViewController {
+        let vc = UIActivityViewController(activityItems: self.items, applicationActivities: nil)
+        vc.completionWithItemsHandler = { _, _, _, _ in
+            completion()
+        }
+        return vc
+    }
+    func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) { }
+}
+#endif
 
 #if DEBUG
 struct Share_Preview: PreviewProvider {

    }
}
#endif

#endif

    public let items: [URL]
    public let completion: Completion
    public var body: some View {
        #if canImport(UIKit)
        _Share(items: self.items, completion: self.completion)
        #else
        _Share(items: self.items, completion: self.completion)
            .frame(width: 10, height: 10)
        #endif
    }
    public init(_ items: [URL], completion: @escaping Share.Completion) {
        self.items = items
