From f607413caf3c3fdf96dc664e65961f8ad8d700d2 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 08cfe9b4..919d86fc 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) {}