Skip to content

Instantly share code, notes, and snippets.

@scottfister
Last active April 25, 2017 15:56
Show Gist options
  • Save scottfister/c8e6421d71358478b63aad8097819e28 to your computer and use it in GitHub Desktop.
Save scottfister/c8e6421d71358478b63aad8097819e28 to your computer and use it in GitHub Desktop.
//...
deck.tapHandler = {
let vc = ShareSelectViewController()
vc.userDecks = self.userDecks
vc.delegate = self
self.pushConfigurationViewController(vc)
}
//...
extension ShareViewController: ShareSelectViewControllerDelegate {
func selected(deck: Deck) {
selectedDeck = deck
reloadConfigurationItems()
popConfigurationViewController()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment