Last active
February 13, 2018 15:56
-
-
Save stephen-francis/eabccc7f78898f6be7499e0c7331b375 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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