Restore iOS file importer for attachments

This commit is contained in:
jack
2025-10-15 00:37:40 +01:00
committed by islam
parent 47db836a22
commit f607413caf
+3
View File
@@ -207,6 +207,9 @@ struct ContentView: View {
guard let item = newItem else { return } guard let item = newItem else { return }
Task { await handlePhotoSelection(item) } Task { await handlePhotoSelection(item) }
} }
.fileImporter(isPresented: $showFileImporter, allowedContentTypes: [.data], allowsMultipleSelection: false) { result in
handleImportResult(result, handler: handleImportedFile)
}
#else #else
.alert("Attachments Unavailable", isPresented: $showAttachmentUnavailableAlert, actions: { .alert("Attachments Unavailable", isPresented: $showAttachmentUnavailableAlert, actions: {
Button("OK", role: .cancel) {} Button("OK", role: .cancel) {}