18 lines
439 B
Swift
18 lines
439 B
Swift
|
//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) {
|
||
|
}
|
||
|
}
|