Skip to content

Instantly share code, notes, and snippets.

@pgpt10
Created November 11, 2017 14:59
Show Gist options
  • Select an option

  • Save pgpt10/72cd028c53962a5c9b2ae34e4ac7fbf8 to your computer and use it in GitHub Desktop.

Select an option

Save pgpt10/72cd028c53962a5c9b2ae34e4ac7fbf8 to your computer and use it in GitHub Desktop.
func collectionView(_ collectionView: UICollectionView, dragPreviewParametersForItemAt indexPath: IndexPath) -> UIDragPreviewParameters?
{
let previewParameters = UIDragPreviewParameters()
previewParameters.visiblePath = UIBezierPath(rect: CGRect(x: 25, y: 25, width: 120, height: 120))
return previewParameters
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment