Bubble/Threaded/Components/ShareSheetController.swift

18 lines
439 B
Swift
Raw Normal View History

2024-01-21 16:34:26 +01:00
//Made by Lumaa
import Foundation
import SwiftUI
import UIKit
/// Share sheet
struct ShareSheet: UIViewControllerRepresentable {
let image: UIImage
func makeUIViewController(context: Context) -> UIActivityViewController {
UIActivityViewController(activityItems: [image], applicationActivities: nil)
}
func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {
}
}