MARK
This commit is contained in:
parent
a0aa00eb61
commit
27a8d753be
@ -3,6 +3,7 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
|
// Doesn't seem to work?
|
||||||
struct AsyncImageTransferable: Codable, Transferable {
|
struct AsyncImageTransferable: Codable, Transferable {
|
||||||
let url: URL
|
let url: URL
|
||||||
|
|
||||||
@ -14,6 +15,7 @@ struct AsyncImageTransferable: Codable, Transferable {
|
|||||||
return Image(uiImage: uiimage)
|
return Image(uiImage: uiimage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: A synchronous exporter should be used
|
||||||
static var transferRepresentation: some TransferRepresentation {
|
static var transferRepresentation: some TransferRepresentation {
|
||||||
ProxyRepresentation { media in
|
ProxyRepresentation { media in
|
||||||
await media.fetchAsImage()
|
await media.fetchAsImage()
|
||||||
|
13
Threaded/Views/Settings/AboutView.swift
Normal file
13
Threaded/Views/Settings/AboutView.swift
Normal 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()
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user