Colin
Colin

Reputation: 3752

How to prevent UIDragPreview snapshot resizing

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...

Upvotes: 4

Views: 343

Answers (0)

Related Questions