Skip to content

Instantly share code, notes, and snippets.

@soggybag
Created February 15, 2016 07:08
Show Gist options
  • Save soggybag/b401c5a67bb214e99046 to your computer and use it in GitHub Desktop.
Save soggybag/b401c5a67bb214e99046 to your computer and use it in GitHub Desktop.
DismissSegue - Adds a Dismiss siege to storyboard
import UIKit
@objc(DismissSegue)
class DismissSegue: UIStoryboardSegue {
override func perform() {
if let controller = sourceViewController.presentingViewController {
controller.dismissViewControllerAnimated(true, completion: nil)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment