mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 05:45:18 +00:00
Restore iOS file importer for attachments
This commit is contained in:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user