// // https://mczachurski.dev // Copyright © 2023 Marcin Czachurski and the repository contributors. // Licensed under the Apache License 2.0. // import Foundation import UIKit import SwiftUI @MainActor struct ActivityView: UIViewControllerRepresentable { let image: UIImage func makeUIViewController(context _: UIViewControllerRepresentableContext) -> UIActivityViewController { return UIActivityViewController(activityItems: [image], applicationActivities: nil) } func updateUIViewController(_: UIActivityViewController, context _: UIViewControllerRepresentableContext) {} }