Skip to content

Commit 9aa97f8

Browse files
committed
fix(mobile): preserve mixed iOS drops
1 parent b333bed commit 9aa97f8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,11 @@ public final class T3ComposerEditorView: ExpoView, UITextViewDelegate, UITextDro
505505
_ textDroppableView: UIView & UITextDroppable,
506506
proposalForDrop drop: UITextDropRequest
507507
) -> UITextDropProposal {
508-
let hasImages = drop.dropSession.items.contains {
508+
let items = drop.dropSession.items
509+
let containsOnlyImages = !items.isEmpty && items.allSatisfy {
509510
$0.itemProvider.canLoadObject(ofClass: UIImage.self)
510511
}
511-
guard hasImages else {
512+
guard containsOnlyImages else {
512513
return drop.suggestedProposal
513514
}
514515

0 commit comments

Comments
 (0)