Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Last active Oct 7, 2019
Embed
What would you like to do?
class BasicViewController: UIViewController, UIContextMenuInteractionDelegate {
override func viewDidLoad() {
super.viewDidLoad()
let interaction = UIContextMenuInteraction(delegate: self)
view.addInteraction(interaction)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment