Private
Public Access
1
0

UI support for uploading image attachments

This commit is contained in:
2025-08-30 21:52:30 -06:00
parent 236070ccc9
commit fc02d86a68
3 changed files with 265 additions and 17 deletions

View File

@@ -6,6 +6,7 @@
//
import SwiftUI
import UniformTypeIdentifiers
struct ConversationView: View
{
@@ -17,5 +18,10 @@ struct ConversationView: View
TranscriptView(model: $transcriptModel)
MessageEntryView(viewModel: $entryModel)
}
.onDrop(of: [UTType.image, UTType.fileURL], isTargeted: $entryModel.isDropTargeted) { providers in
entryModel.handleDroppedProviders(providers)
return true
}
}
}