Created
February 15, 2016 07:08
-
-
Save soggybag/b401c5a67bb214e99046 to your computer and use it in GitHub Desktop.
DismissSegue - Adds a Dismiss siege to storyboard
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
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