Skip to content

Instantly share code, notes, and snippets.

@levantAJ
Created May 11, 2017 10:28
Show Gist options
  • Save levantAJ/17f3c092240408cb19e3d695d98ae3de to your computer and use it in GitHub Desktop.
Save levantAJ/17f3c092240408cb19e3d695d98ae3de to your computer and use it in GitHub Desktop.
Load list of segues in UIViewController
import UIKit
extension UIViewController {
var segueIdentifiers: [String] {
return (self.value(forKey: "storyboardSegueTemplates") as? [AnyObject])?.flatMap({ $0.value(forKey: "identifier") as? String }) ?? []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment