This commit is contained in:
Lumaa 2023-12-30 20:57:41 +01:00
parent a0aa00eb61
commit 27a8d753be
3 changed files with 17 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# <#Title#>

View File

@ -3,6 +3,7 @@
import Foundation
import SwiftUI
// Doesn't seem to work?
struct AsyncImageTransferable: Codable, Transferable {
let url: URL
@ -14,6 +15,7 @@ struct AsyncImageTransferable: Codable, Transferable {
return Image(uiImage: uiimage)
}
// MARK: A synchronous exporter should be used
static var transferRepresentation: some TransferRepresentation {
ProxyRepresentation { media in
await media.fetchAsImage()

View File

@ -0,0 +1,13 @@
//Made by Lumaa
import SwiftUI
struct AboutView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
AboutView()
}