skip to Main Content

Xcode – Creating an an enum for segue identifiers

How would I go about extending an NSObject, NSStoryboardSegue.Identifier, to provide a set of cases as potential parameter types? extension NSStoryboardSegue.Identifier { enum identifier: String { case showHelpWindow } } extension ViewController { override func prepare(for segue: NSStoryboardSegue, sender: Any?)…

VIEW QUESTION
Back To Top
Search