How to prevent UIDragPreview snapshot resizing

322 Views Asked by At

I can make a custom drag view during drag-and-drop like so:

let d = UIDragItem(itemProvider: itemProvider) d.previewProvider = { UIDragPreview(view: imageView) }

But then if my imageView is 'too big', iOS will resize it down to something it thinks is better. But, it's wrong. Anybody know how to prevent this? The imageView I give it has the exact draggable size that I want...

0

There are 0 best solutions below