UI support for uploading image attachments
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user