Skip to content

Instantly share code, notes, and snippets.

@thii
Created March 14, 2015 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thii/7b2a04dfe05fe6df9ed0 to your computer and use it in GitHub Desktop.
Save thii/7b2a04dfe05fe6df9ed0 to your computer and use it in GitHub Desktop.
import UIKit
class DismissSegue: UIStoryboardSegue {
override func perform() {
let sourceViewController = self.sourceViewController as UIViewController
sourceViewController.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment