25 lines
585 B
Swift
25 lines
585 B
Swift
//
|
|
// ActivityView.swift
|
|
// Gemini-iOS
|
|
//
|
|
// Created by Shadowfacts on 9/30/20.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ActivityView: UIViewControllerRepresentable {
|
|
typealias UIViewControllerType = UIActivityViewController
|
|
|
|
let items: [Any]
|
|
let activities: [UIActivity]?
|
|
|
|
func makeUIViewController(context: Context) -> UIActivityViewController {
|
|
return UIActivityViewController(activityItems: items, applicationActivities: activities)
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {
|
|
}
|
|
|
|
|
|
}
|