From cd39d8c8c01a92b034047e9c3f155d0d5594eb23 Mon Sep 17 00:00:00 2001 From: jack Date: Thu, 25 Sep 2025 01:10:00 +0200 Subject: [PATCH] Restore iOS file importer for attachments --- bitchat/Views/ContentView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitchat/Views/ContentView.swift b/bitchat/Views/ContentView.swift index d37ca733..193823fe 100644 --- a/bitchat/Views/ContentView.swift +++ b/bitchat/Views/ContentView.swift @@ -207,6 +207,9 @@ struct ContentView: View { guard let item = newItem else { return } Task { await handlePhotoSelection(item) } } + .fileImporter(isPresented: $showFileImporter, allowedContentTypes: [.data], allowsMultipleSelection: false) { result in + handleImportResult(result, handler: handleImportedFile) + } #else .alert("Attachments Unavailable", isPresented: $showAttachmentUnavailableAlert, actions: { Button("OK", role: .cancel) {}