Skip to content

Instantly share code, notes, and snippets.

@stephen-francis
Last active February 13, 2018 15:56
Show Gist options
  • Select an option

  • Save stephen-francis/eabccc7f78898f6be7499e0c7331b375 to your computer and use it in GitHub Desktop.

Select an option

Save stephen-francis/eabccc7f78898f6be7499e0c7331b375 to your computer and use it in GitHub Desktop.
// Enable dragging from the image view (see ViewController+Drag.swift).
let dragInteraction = UIDragInteraction(delegate: self)
dragInteraction.isEnabled = true // this must be enabled for apps targeting iPhone
imageView.addInteraction(dragInteraction)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment