Created
November 16, 2017 10:27
-
-
Save icanswiftabit/85b77170fdc7ad23e164cdd5e0c4ab65 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
func dropInteraction(_ interaction: UIDropInteraction, performDrop session: UIDropSession) { | |
session.loadObjects(ofClass: NSString.self) { item in | |
DispatchQueue.main.async { | |
label.text = item as NSString as String | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment